1.0.5 • Published 4 years ago

think-view-art v1.0.5

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

think-view-art

Greenkeeper badge Build Status Coverage Status npm

Use artTemplate to render view files for ThinkJs 3.x version

Install

npm install think-view-art

How To Use

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 for more information on art-template options.

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago