#ftl encoding="utf-8" />
<#setting locale="en_US" />
<#import "library" as lib />
<#--
FreeMarker comment
${abc} <#assign a=12 />
-->
${title!"FreeMarker"}
Hello ${name!""}
Today is: ${.now?date}
<#assign x = 13>
<#if x > 12 && x lt 14>x equals 13: ${x}#if>
<#list items as item>
- ${item_index}: ${item.name!?split("\n")[0]}
#list>
User directive: <@lib.function attr1=true attr2='value' attr3=-42.12>Test@lib.function>
<@anotherOne />
<#if variable?exists>
Deprecated
<#elseif variable??>
Better
<#else>
Default
#if>