- 两种assign方式
<#assign a=1>
<#assign b="hello, ${dataModel.user}">
<#asssign c>
<h1>Greeting message. ${b}</h1>
</#asssign>
- 可以在<#include "another.ftl">外定义
<#assign greeting= "hello world">
-----------another.ftl---------------
${greeting}, somebody
----------------------------------------