You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1017 B
Plaintext

<#ftl encoding="utf-8" />
<#setting locale="en_US" />
<#import "library" as lib />
<#--
FreeMarker comment
${abc} <#assign a=12 />
-->
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<title>${title!"FreeMarker"}<title>
</head>
<body>
<h1>Hello ${name!""}</h1>
<p>Today is: ${.now?date}</p>
<#assign x = 13>
<#if x &gt; 12 && x lt 14>x equals 13: ${x}</#if>
<ul>
<#list items as item>
<li>${item_index}: ${item.name!?split("\n")[0]}</li>
</#list>
</ul>
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>
<img src="images/${user.id}.png" />
</body>
</html>