weg-preprocessor-extlang

0.0.1 • Public • Published

weg-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 weg-preprocessor-extlang
// config
vi <project>/fis-conf.js
 
fis.match('/client/views/(**).tpl'{
    useMap:true,
    url: '/$1',
    preprocessor: fis.plugin('extlang')
});

Package Sidebar

Install

npm i weg-preprocessor-extlang

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • hubcarl