jaredhanson / locomotive

Powerful MVC web framework for Node.js.
http://locomotivejs.org/
MIT License
887 stars 135 forks source link

Update view engine jade example in the guide #179

Open benrlodge opened 8 years ago

benrlodge commented 8 years ago

On the jade example of changing the view engine in the guide under the settings heading, it would be nice to add that you also need to change: this.engine('ejs', require('ejs').__express); to this.engine('jade', require('jade').__express);

as it's a little misleading to say

That is easily changed by setting the view engine option in config/environments/all.js:`

by just doing - this.set('view engine', 'jade');

crispen-smith commented 8 years ago

+1

However, this once again raises the question of maintenance.