摘要: Installation Via NPM: Basic Usage Swig has multiple ways to compile and render templates. Check the API documentation for more detailed information an 阅读全文
posted @ 2017-02-13 23:07 上帝之城 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 如何使用 API options: allowErrors: 默认值为 false。将所有模板解析和编译错误直接输出到模板。如果为 true,则将引发错误,抛出到 Node.js 进程中,可能会使您的应用程序崩溃。 autoescape: 默认true,强烈建议保持。字符转换表请参阅转义过滤器。 t 阅读全文
posted @ 2017-02-13 22:25 上帝之城 阅读(323) 评论(0) 推荐(0) 编辑