${...}<#-- this is a comment, won't get into the output --><#if animals.python.price < animals.elephant.price>
Pythons are cheaper than elephants today.
<#else>
Pythons are not cheaper than elephants today.
</#if><p>WE have these anaimals:
<table border=1>
<#list animals as animal>
<tr><td>${animal.name}<td>${animal.price} Euros
</#list>
</table>separator in list (e.g. by comma)
<p>Fruits: <#list misc.fruits as fruit>${fruit}<#sep>, </#list>with else statement
<p>Fruits: <#list misc.fruits as fruit>${fruit}<#sep>, <#else>None</#list>
<html>
<head>
<title>Test page</title>
</head>
<body>
<h1>Test page</h1>
<p>Blah blah...
<#include "/copyright_footer.html">
</body>
</htmluser?upper_caseanimal.name?cap_firstuser?lengthanimals?sizeinside <#list animals as animal></#list>animal?index0-based indexanimal?counter1-based indexanimal?item_parityreturn String "odd" or "even" (e.g.:<td class="${animal?item_parity}Row">)
animal.isProtected?string("Y", "N")return "Y" or "N" depending on boolean valueanimal?item_cycle('lightRow', 'darkRow')more specific ofitem_parityfruit?join(", ")converts list to String with separator
<h1>Welcome ${user!"visitor"}!</h1><#if user??><h1>Welcome ${user}!</h1></#if>${value?no_esc}