I am using Kraken.js with Dust as the default view engine. I get this error:
No default engine was specified and no extension was provided. at new View (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/view.js:62:11) at EventEmitter.render (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/application.js:569:12) at ServerResponse.render (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/response.js:961:7) at /home/zhiro/Desktop/kraken/krakil/controllers/index.js:14:13 at Layer.handle [as handle_request] (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/router/layer.js:95:5) at next (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/router/route.js:131:13) at Route.dispatch (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/router/layer.js:95:5) at /home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/router/index.js:277:22 at Function.process_params (/home/zhiro/Desktop/kraken/krakil/node_modules/express/lib/router/index.js:330:12)
I see this error when I call res.render
.
'use strict';
var IndexModel = require('../models/index');
module.exports = function (router) {
var model = new IndexModel();
router.get('/', function (req, res) {
res.render('index');
});
};