Skip to content

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

License

Notifications You must be signed in to change notification settings

Tauleos/think-view-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •