freemarker中宏的简单理解

macro设置网页标题

其中layout表示域(类似于一个类)名称,后面跟着title是当前域下的变量

设置title的值

设置title变量时 @域名称 后再设置变量内容

如果是多个参数

<#macro layout title,name,xxx,xxx>

<@ layout "1123","222","333"> 

你可能感兴趣的:(freemarker中宏的简单理解)