fis-parser-jade-inline
A parser for fis to compile inline jade file.
Last updated 6 years ago by qdsang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fis-parser-jade-inline 
SYNC missed versions from official npm registry.

fis-parser-jade-inline

js代码中内嵌jade模板

https://github.com/visionmedia/jade

jade 中文教程 https://github.com/visionmedia/jade/blob/master/Readme_zh-cn.md

编译后的模板依赖jade runtime https://github.com/visionmedia/jade/blob/master/runtime.js

可以通过( isInlineRuntime )配置来控制是否内嵌jade runtime (默认为true)

如果页面多处使用jade内嵌模板, 最好直接在页面中引用

fis.config.merge({
    project : {
        fileType : {
            text : 'jtpl'
        }
    },
    modules : {
        parser : {
            jtpl : 'jade-inline'
        }
    },
    settings : {
        parser : {
            'jade-inline': {
                isInlineRuntime : true
            }
        }
    }
});

Current Tags

  • 0.0.2                                ...           latest (6 years ago)

2 Versions

  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |