0.4.0 • Published 5 years ago

yion-pug v0.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

YION PUGJS PLUGIN

A Pugjs plugin for framework Yion

Install

$ npm install --save yion-pug

Usage

const { createServer, createApp } = require('yion');
const pugRender = require('yion-pug');

const app = createApp();
const server = createServer(app, [pugRender]);

app.get('/', (req, res) => {
    res.render('home.pug', { name: 'John' });
});

API reference

Response render method :

  • render(filepath, options = {}, status = 200): render file template with Pugjs
0.4.0

5 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago