Created
February 12, 2010 06:13
-
-
Save jacksonh/302355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jackson@linux-7axw:~/Projects/mango/template/minge> cat template.html | |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> <head> | |
<title></title> | |
</head> | |
{# this is a comment #} | |
<body> | |
<h1></h1> | |
{% print foo|default("default value is printed if foo is null or empty")|upper %} | |
</body> </html> | |
jackson@linux-7axw:~/Projects/mango/template/minge> mono --debug compile.exe mingetest.dll template.html | |
jackson@linux-7axw:~/Projects/mango/template/minge> mono --debug render.exe mingetest.dll templates.template foo '' | |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> <head> | |
<title></title> | |
</head> | |
<body> | |
<h1></h1> | |
DEFAULT VALUE IS PRINTED IF FOO IS NULL OR EMPTY | |
</body> </html> | |
jackson@linux-7axw:~/Projects/mango/template/minge> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment