mya-parser-undertpl

1.0.1 • Public • Published

mya-parser-undertpl

mya plugin for underscore template parse

使用

fis.match('*.tmpl', {
    parser: fis.plugin('undertpl')
});

配置

// 开启 underscore xss 自动转义,此时支持自定义语法 <%= xxx|safe %>,用于标明变量xxx是安全的,无需转义
fis.config.set('settings.parser.undertpl', {
    xssEscape: true
});

Readme

Keywords

Package Sidebar

Install

npm i mya-parser-undertpl

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • animabear