[size=medium][color=red]1.if指令。[/color]
eg:
<h1>
Welcome ${user}<#if user[color=red] ==[/color] "yale">, our beloved
leader</#if>!
</h1>
当然啦,还有elseif,else指令等等
[color=red]2.list指令[/color]
eg:
<#list users as user>
<tr><td>${user.name}</td><td>${user.pass}</td>
</#list>
[color=red]3.include 指令[/color],我们可以在当前的模板中插入其他文件的内容。
eg:
<#include "/header.html">[/size]
eg:
<h1>
Welcome ${user}<#if user[color=red] ==[/color] "yale">, our beloved
leader</#if>!
</h1>
当然啦,还有elseif,else指令等等
[color=red]2.list指令[/color]
eg:
<#list users as user>
<tr><td>${user.name}</td><td>${user.pass}</td>
</#list>
[color=red]3.include 指令[/color],我们可以在当前的模板中插入其他文件的内容。
eg:
<#include "/header.html">[/size]