1.0.1 • Published 7 years ago

mya-parser-undertpl v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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
});