lizheming / think-view-xtemplate

Use nunjucks to render view files for ThinkJS 3.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%