https://github.com/lwdgit/fis-parser-art-template
A fis parser plugin for art-template
https://github.com/lwdgit/fis-parser-art-template
Last synced: about 1 year ago
JSON representation
A fis parser plugin for art-template
- Host: GitHub
- URL: https://github.com/lwdgit/fis-parser-art-template
- Owner: lwdgit
- License: mit
- Created: 2015-06-06T07:46:38.000Z (about 11 years ago)
- Default Branch: reasy
- Last Pushed: 2017-03-11T14:21:51.000Z (over 9 years ago)
- Last Synced: 2025-05-05T14:40:04.670Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 321 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: readme-en.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fis-parser-art-template 
[](https://www.npmjs.org/package/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
```javascript
//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(fis-parser-art-template@2.0.0 & fis3 only)
## Example
see [example](https://github.com/lwdgit/fis-parser-art-template/tree/reasy/example '')