🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

weg-preprocessor-extlang

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weg-preprocessor-extlang

An fis preproccessor plugin for parse swig custom tags.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
20
300%
Maintainers
1
Weekly downloads
 
Created
Source

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')
});

Keywords

fis

FAQs

Package last updated on 04 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts