This is my (simplified) app.coffee
:
app.set('views', __dirname + '/app/views')
app.set('view enigne', 'jade')
app.listen 8000
However, when I visit my app in the browser I get the following error message:
Error: No default engine was specified and no extension was provided
Edit: Turns out I'm an idiot and spelled "engine" incorrectly. Thanks to @lascort for pointing it out!
You have a typo:
app.set('view >>enigne<<', 'jade')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With