if
<#if animals.python.price < animals.elephant.price>
Pythons are cheaper than elephants today.
<#elseif animals.elephant.price < animals.python.price>
Elephants are cheaper than pythons today.
<#else>
Elephants and pythons cost the same today.
</#if>
<#if user??><h1>Welcome ${user}!</h1></#if>
list
<#list misc.fruits>
<p>Fruits:
<ul>
<#items as fruit>
<li>${fruit}<#sep> and</#sep>
</#items>
</ul>
<#else>
<p>We have no fruits.
</#list>
include
<#include "/copyright_footer.html">
Escaping
<#ftl output_format="HTML|XML">
Basics
${cargo.weight / 2 + 100}
template
<#macro greet person color>
<font size="+2" color="${color}">Hello ${person}!</font>
</#macro>
<@greet person="Fred" color="black"/>
作者
jnan77
发表于
2018-05-15 09:20:47
,添加在分类
编程语言
下
,并被添加「
java
模板引擎
」标签
,最后修改于
2018-05-15 09:20:49
Comments