fis-parser-art-template
v2.0.4
Published
art-template parser for fis & fis3
Downloads
34
Readme
fis-parser-art-template
A fis parser plugin for art-template
Install
$ npm install fis-parser-art-template
Tips
Above v2.0.0 only support fis3 & reasy
##Usage
//fis-conf.js for fis3
fis.match('**.{html,tpl}', {
parser: fis.plugin('art-template', {
native: false,
define: {
"title": "hello, art-template",
"stylesheets": ["main.css"],
"scripts": ["main.js"],
"module/": {
"title": "home module",
"home.tpl": {
"stylesheets": ["home.css"],
"scripts": ["home.js"]
}
},
"index.tpl": {
"stylesheets": ["index.css"],
"scripts": ["index.js"]
}
}
}),
rExt: 'html'
})
$ fis release -d ./output
Reserved words
- noParse true: page keep origin
- release false: page will not relase([email protected] & fis3 only)
Example
see example