0
假设我有两个宏,一个嵌套在另一个宏中。Freemarker - 将参数传递给嵌套宏
[#macro testNestingTOP id]
[#nested]
[/#macro]
[#macro testNesting]
id: ${id}
[/#macro]
使用:
如何从testNesting宏检索ID特性参数的值?
[@testNestingTOP id='SOME VALUE']
[@testNesting /]
[/@testNestingTOP]