【发布时间】:2012-07-29 09:20:16
【问题描述】:
我终于安装并运行了 Template-Toolkit,但我在编译时遇到了一些问题。
我正在尝试为瞻博网络网关制作自定义登录页面。他们在第 18 页的文档 (http://www.juniper.net/techpubs/software/ive/admin/5.5-CSPSolutionGuide.pdf) 中说
You must begin each file with the directive
[% TAGS <% %> %] so that you can use angle brackets on any directives you add
to the templates. By default, the Template Toolkit recognizes square brackets ([
]) instead of angle brackets (<>) as delimiters for directives. The IVE recognizes
angle brackets only. Adding the TAGS directive tells the local Template Toolkit
utilities that you are using angle brackets.
我将这一行添加到文件的开头,但是当我运行 tpage 命令时出现此错误:
undef error - verbatim: filter not found
另一种选择是在此文档 (http://template-toolkit.org/docs/manual/Config.html#section_START_TAG_END_TAG) 中更改 Template-Toolkit 配置中的 START_TAG 和 END_TAG
但我不确定在哪里可以执行此更改,我不知道在哪里可以找到配置文件或更改设置的命令。
感谢任何帮助!
【问题讨论】:
标签: perl template-toolkit