Add documentation on Views
connor11528 opened this issue · comments
I see that I must configure my view engine in config/views.js. What is that configuration object supposed to look like?
Also where do my html (or ejs or jade) templates go? What is the convention for the file path?
for express it'll be this:
View Config
Choose a template engine.
// config/views.js
module.exports = {
engine: 'pug'
}
Then simply write your views in a directory called 'views'!