Skip to content

lizheming/think-view-xtemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

think-view-xtemplate

Use nunjucks to render view files for ThinkJS 3.x

Install

npm install think-view-xtemplate

How To Use

const xtpl = require('think-view-xtpl');
exports.view = {
  type: 'xtpl',
  xtpl: {
    handle: xtpl,
    beforeRender: (xtpl, opts) => {}
    options: {
      encoding: 'utf-8'
    }
  }
}

About

Use nunjucks to render view files for ThinkJS 3.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published