@zenweb/view
v2.4.1
Published
zenweb view module
Downloads
8
Maintainers
Readme
zenweb-view
zenweb view module
Quick start
$ npm i @zenweb/view
app/index.js
'use strict';
const { default: view } = require('@zenweb/view');
const app = module.exports = require('zenweb').create();
app.setup(view());
app.boot().then(() => {
app.router.get('/', ctx => {
return ctx.render('index', {
name: 'world',
});
});
app.listen();
});
app/view/index.njk
<h1>Hello {{name}}</h1>