restify-render-middleware
Another middleware to render pages with restify. Inspired by restify-render
Installation:
npm i restify-render-middleware -S
Note:
Requires Node >8.0.0
.
Example:
This example is available here as well.
'use strict' const restify = const render = const server = restifyserver server server
NOTE: if you need another engine to render the view, simply install
npm install swig-templates
To use you must configure an object
server server
In this case you do not need to configure the extension to viewer. For a list of supported engines go to the link.
Tests
npm test
License
Copyright (c) 2018-present