Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jade compile util for fis
JavaScript
Branch: master

README.md

fis-parser-jade

A parser for fis to compile jade file.

功能

  • 将Jade模版编译为HTML

用法

安装插件

$ npm install -g fis-parser-jade
$ vi path/to/project/fis-conf.js

启用插件

//file : path/to/project/fis-conf.js

//使用fis-parser-jade插件编译jade文件
fis.config.set('modules.parser.jade', 'jade');
//jade文件经过编译后输出为html文件
fis.config.set('roadmap.ext.jade', 'html');

添加自定义filter与jade编译设置

var jadeConf = {
    filters : {
        jadesrc : require('jade-highlighter')
    },
  pretty  : true
};

fis.config.set('settings.parser.jade', jadeConf);
Something went wrong with that request. Please try again.