template-deprecate:模板中间件。 当使用不推荐使用的模板变量或语法时警告用户或抛出错误

时间:2021-06-03 18:47:28
【文件属性】:
文件名称:template-deprecate:模板中间件。 当使用不推荐使用的模板变量或语法时警告用户或抛出错误
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-03 18:47:28
JavaScript 模板弃用 模板中间件。 当使用不推荐使用的模板变量或语法时警告用户或抛出错误。 安装 使用安装 $ npm i template-deprecate --save 用法 var deprecate = require ( 'template-deprecate' ) ; var Template = require ( 'template' ) ; template = new Template ( ) ; template . engine ( 'hbs' , require ( 'engine-handlebars' ) ) ; var re = / \{ { > \s * body \s * } } / ; var msg = 'LAYOUT SYNTAX ERROR: use `{% body %}` instead of `{{> body }}`.\n' ; // regi
【文件预览】:
template-deprecate-master
----.jshintrc(282B)
----.gitignore(145B)
----package.json(1KB)
----.travis.yml(151B)
----LICENSE(1KB)
----index.js(923B)
----test.js(1KB)
----.verb.md(834B)
----README.md(2KB)
----.gitattributes(128B)
----.editorconfig(415B)

网友评论