response.render
v0.1.6
Published
pejs template rendering for root
Downloads
5
Readme
response.render
response.render is a small plugin for root that adds a render
function to the response
npm install response.render
response.render will render a PEJS template and write it to the response while adding the appropriate headers.
var root = require('root');
var app = root();
app.use(require('response.render'));
app.get(function(request, response) {
response.render('./my-test-template', {my:'locals'});
});
app.listen(8080);