summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorRaphael <raphaelkabo@gmail.com>2020-01-06 13:07:02 +1100
committerGitHub <noreply@github.com>2020-01-06 13:07:02 +1100
commitc5835cbdbcfe3abda637e298a89b36ebb058c22a (patch)
tree47d1a48404203b494c554cf1a1c1777808620569 /app.js
parent3c386a9d7c3e1a2c94e1cf7f0cd60f80b108cf18 (diff)
parente212c731dd0348434586de8fdbdad383d3072fae (diff)
Merge pull request #27 from dariusk/email-templates
Refactor email to use source-controlled templates
Diffstat (limited to 'app.js')
-rwxr-xr-xapp.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.js b/app.js
index a8d2889..42626ff 100755
--- a/app.js
+++ b/app.js
@@ -19,6 +19,7 @@ const app = express();
hbsInstance = hbs.create({
defaultLayout: 'main',
partialsDir: ['views/partials/'],
+ layoutsDir: 'views/layouts/',
helpers: {
plural: function(number, text) {
var singular = number === 1;
@@ -39,6 +40,7 @@ hbsInstance = hbs.create({
});
app.engine('handlebars', hbsInstance.engine);
app.set('view engine', 'handlebars');
+app.set('hbsInstance', hbsInstance);
// Static files //