0.0.7 • Published 8 years ago

fis3-parser-preprocessor v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

fis配置使用方法

fis.match('{*.html,*.css,*.js}', {
    parser: [fis.plugin('preprocessor', {
        context: {
            system: lang
        },
        options: {
        }
    })]
})

代码里边用法

html中
<!--@if system='cn' --> 或者 <!--@if system!='cn' -->
<!--@endif-->
js中
//@if system='cn' 或者 //@if system!='cn'
//@endif
css中
/* @if system='cn' */ 或者 /* @if system!='cn' */
/* @endif */
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago