think-custom-art

1.0.3 • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i think-custom-art

Weekly Downloads

2

Version

1.0.3

License

Apache-2.0

Unpacked Size

19.7 kB

Total Files

10

Last publish

Collaborators

  • mind29