express-ion-render

a shorcut for (req,res) => {res.render("view"), options}

Usage no npm install needed!

<script type="module">
  import expressIonRender from 'https://cdn.skypack.dev/express-ion-render';
</script>

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