express-ion-render
v1.0.0
Published
a shorcut for (req,res) => {res.render("view"), options}
Downloads
2
Maintainers
Readme
express-ion-render
a shorcut for (req,res) => {res.render("view"), options}
Installation
$ npm install express-ion-render --save
Usage
instead of:
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
you can use:
var render = require('express-ion-render')
router.get('/', render('index', 'Express'));
License
MIT © Fabian Gutierrez