You are watching: No default engine was specified and no extension was provided
This functions :
app.set('views', './views' );app.set('view-engine', 'jade'); app.get('/j', function(req, res) res.render('somepage.jade', title:'yeah...', message:'It works'););This does not : (no .jade extension.)
app.set('views', './views' );app.set('view-engine', 'jade'); app.get('/j', function(req, res) res.render('somepage', title:'yeah...', message:'It works'););But the docs say :
http://expressjs.com/guide/using-template-engines.htmlIf the see engine building is no set, you will need to specify the expansion of the see file, else you can omit it.
Which renders me think the not, especially since the error is :
Error: No default engine was specified and also no expansion was provided.
I assumed this collection it :
Log in or authorize up to leave a comment
Log InSign Up
Sort by: best
I'm pretty sure it's "view engine", no "view-engine"
See the settings list: http://expressjs.com/4x/api.html#app.set
Op · 6y
Yep, absolutely view engine rather of view-engine.
Welcome come node
Created Dec 16, 2009
Top short articles july 13th 2015Top posts of july, 2015Top short articles 2015
helpsommos.net coinssommos.net premiumsommos.net gifts
See more: ' Normal People Is A Love Story To Cherish, Perish, Normal People By Sally Rooney
Back come Top