An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# fis-parser-art-template ![NPM version](https://badge.fury.io/js/fis-parser-art-template.png)

[![NPM Download](https://nodei.co/npm-dl/fis-parser-art-template.png?months=1)](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 '')