Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lizheming/think-view-xtemplate

Use nunjucks to render view files for ThinkJS 3.x
https://github.com/lizheming/think-view-xtemplate

Last synced: 1 day ago
JSON representation

Use nunjucks to render view files for ThinkJS 3.x

Awesome Lists containing this project

README

        

# think-view-xtemplate
Use nunjucks to render view files for ThinkJS 3.x

## Install

```
npm install think-view-xtemplate
```

## How To Use

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