美文网首页
freemarker中宏的简单理解

freemarker中宏的简单理解

作者: 778bc750a218 | 来源:发表于2018-12-14 10:47 被阅读0次
macro设置网页标题

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

设置title的值

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

如果是多个参数

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

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

相关文章

网友评论

      本文标题:freemarker中宏的简单理解

      本文链接:https://www.haomeiwen.com/subject/temwhqtx.html