Freemarker

Test for existance
&lt;#if test??&gt;

print a boolean as a string
${bool?string}

use default value if variable does not exist
${var!}

assign
<#assign var = object.getMethod( param ) /> <#assign var = "value" /> <#assign _ = object.noReturnValue /> <#assign System = statics['java.lang.System'] />

computer friendly number
${val?c}