0.0.2 • Published 10 years ago

yogurt-preprocessor-extlang v0.0.2

Weekly downloads
25
License
mit
Repository
github
Last release
10 years ago

yogurt-preprocessor-extlang

An fis preproccessor plugin for parse swig custom tags.

支持使用Swig script, style 插件的JavaScript的语言扩展

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

{% style %}
@import url(./a.css?__inline);
{% endstyle %}

使用

// install
npm install -g yogurt-preprocessor-extlang
// config
vi <project>/fis-conf.js

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