【发布时间】:2012-10-19 04:41:41
【问题描述】:
假设我有两个宏,一个嵌套在另一个中。
[#macro testNestingTOP id]
[#nested]
[/#macro]
[#macro testNesting]
id: ${id}
[/#macro]
用法:
如何从 testNesting 宏中检索 id 参数的值?
[@testNestingTOP id='SOME VALUE']
[@testNesting /]
[/@testNestingTOP]
【问题讨论】:
标签: macros freemarker