think-view-art

1.0.5 • Public • Published

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.

Package Sidebar

Install

npm i think-view-art

Weekly Downloads

1

Version

1.0.5

License

Apache-2.0

Unpacked Size

15.5 kB

Total Files

8

Last publish

Collaborators

  • mav7