Add a view helper for date formatting

This commit is contained in:
Rowan Manning
2013-09-16 10:26:21 +01:00
parent 188852129a
commit a7aad37ea0
5 changed files with 31 additions and 6 deletions

3
app.js
View File

@@ -36,6 +36,9 @@ function initApp (config, callback) {
}));
app.express.set('view engine', 'html');
// View helpers
require('./view/helper/date')(hbs.registerHelper);
// Populate view locals
app.express.locals({
lang: 'en',