【发布时间】:2012-03-03 00:28:16
【问题描述】:
有没有办法配置 freemarker 以便 Freemarker 模板引擎自动插入当前模板的名称作为 HTML 注释?
我想查看的 HTML 输出示例:
<!-- template file: main.ftl -->
normal template code of the file main.ftl
<!-- template file: myinclude.ftl -->
This is the code from myinclude.ftl
我只想将此类功能用于调试目的,以便更容易找出哪些 HTML 片段在哪个模板中呈现。
有什么提示吗?
【问题讨论】:
标签: templates freemarker