摘要: 如何使用APIswig.init({ allowErrors: false, autoescape: true, cache: true, encoding: 'utf8', filters: {}, root: '/', tags: {}, extensions: {}, tzOffset: 0});options:allowErrors: 默认值为 false。将所有模板解析和编译错误直接输出到模板。如果为 true,则将引发错误,抛出到 Node.js 进程中,可能会使您的应用程序崩溃。autoescape: 默认true,强烈建议保持。字符转换表请参阅转 阅读全文
posted @ 2013-06-18 17:02 Elementstorm 阅读(23551) 评论(1) 推荐(1) 编辑