app.engine(ext, callback)
Registers the given template engine callback as ext.
By default, Express will require() the engine based on the file extension. For example, if you try to render a “foo.pug” file, Express invokes the following internally, and caches the require() on subsequent calls to increase performance.
app.engine('pug', require('pug').__express);
Use this method for engines that do not provide .__express out of the box, or if you wish to “map” a different extension to the templat