【发布时间】:2015-10-02 10:24:59
【问题描述】:
创建可用于或不使用嵌套内容的宏的正确方法是什么?例如
<@myMacro/>
<@myMacro>my nested content</@myMacro>
有这样的吗?还是别的什么?
<#macro myMacro>
<#if ??????>
Before nested content
<#nested/>
After nested content
<#else/>
Nothing nested here
</#if>
</#macro>
【问题讨论】:
标签: freemarker