1.
${data model} 类似于jsp的<%=data model%><%=data model%>
2.JTL tag:以
#开头,除了某些特定的tag会以
@开头(用户自定义的tag)
3.注释:
<#-- 注释内容
--> 4.几个tag的例子
<#if condition> 内容
</#if>
#IF>
<#else>
例子:
<#if animals.python.price < animals.elephant.price>
Pythons are cheaper than elephants today.
<#else>
Pythons are not cheaper than elephants today.
</#if>
循环读取数据
<#list SequenceVar as variable>repeatThis</#list>
<#list animals as being>
${being.name} | ${being.price} |
#LIST> </#list>
<#list whatnot.fruits as fruit>
${fruit}
</#list>
插入文件中的内容<#include "filename">