Skip to content

Instantly share code, notes, and snippets.

@jacksonh
Created February 12, 2010 06:13
Show Gist options
  • Save jacksonh/302355 to your computer and use it in GitHub Desktop.
Save jacksonh/302355 to your computer and use it in GitHub Desktop.
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