Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (over 6 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 (6 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
[![Greenkeeper badge](https://badges.greenkeeper.io/Tauleos/think-view-art.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/leo-enigma/think-view-art.svg?branch=master)](https://travis-ci.org/leo-enigma/think-view-art)
[![Coverage Status](https://coveralls.io/repos/github/leo-enigma/think-view-art/badge.svg?branch=master)](https://coveralls.io/github/leo-enigma/think-view-art?branch=master)
[![npm](https://img.shields.io/npm/v/think-view-art.svg)](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.