https://github.com/Tauleos/think-view-art
Use artTemplate to render view files for ThinkJs 3.x version
https://github.com/Tauleos/think-view-art
Last synced: 5 months ago
JSON representation
Use artTemplate to render view files for ThinkJs 3.x version
- Host: GitHub
- URL: https://github.com/Tauleos/think-view-art
- Owner: Tauleos
- License: apache-2.0
- Created: 2018-03-29T02:38:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T08:10:56.000Z (over 4 years ago)
- Last Synced: 2024-05-18T22:12:03.482Z (11 months ago)
- Language: JavaScript
- Size: 136 KB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- think-awesome - think-view-art - template to render view files (Adapters / view)
README
# think-view-art
[](https://greenkeeper.io/)
[](https://travis-ci.org/leo-enigma/think-view-art)
[](https://coveralls.io/github/leo-enigma/think-view-art?branch=master)
[](https://github.com/leo-enigma/think-view-art)Use artTemplate to render view files for ThinkJs 3.x version
## Install
```javascript
npm install think-view-art
```## How To Use
```javascript
const artTemplate = require('think-view-art')
exports.view = {
type:'artTemplate',
artTemplate:{
handle:artTemplate,
common: {} //thinkjs itself config
options: {
//your self config here
compileDebug:true
},
beforeRender: (art, handleOptions) => {
//do something before render the template.
}
}
}
```please refer to [art-template](https://aui.github.io/art-template/zh-cn/docs/options.html) for more information on art-template options.