node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

fis-preprocessor-extlang

fis-preprocessor-extlang

支持使用Smarty script 插件的JavaScript的语言扩展

{%script%}
    require('./a.js');
    __inline('./b.js');
    var a = __uri('./c.js');
    //blabla
{%/script%}

使用

//install
npm install -g fis-preprocessor-extlang


//config
vi <project>/fis-conf.js

fis.merge.config({
    modules: {
        preprocessor: {
            tpl: "extlang"
        }
    },
    ....
});