Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

yanhaijing/fis-parser-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fis-parser-template license

template.js的fis编译插件——一款javascript模板引擎。

安装

$ npm install -g fis-parser-template

配置

配置参数同template.js参数一样,其中global参数代表template.js的全局名称。

fis2

//设置编译器
fis.config.merge({
    modules: {
        parser: {
            tmpl: 'template' // tmpl后缀的使用fis-parser-template处理
        }
    }
});

//自定义参数
fis.config.merge({
    settings: {
        parser: {
            template: {
                sTag: '<%',
                eTag: '%>',
                global: 'template'
            }
        }
    }
});

fis3

fis.match('**.tmpl', {
    parser: fis.plugin('template', {
        sTag: '<%',
        eTag: '%>',
        global: 'template'
    }),
    isJsLike: true,
    release : false
});

报告问题

作者

yanhaijing

更新日志

更新日志

谁在使用

相关链接