diff options
author | Raphael <raphaelkabo@gmail.com> | 2020-01-06 13:07:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 13:07:02 +1100 |
commit | c5835cbdbcfe3abda637e298a89b36ebb058c22a (patch) | |
tree | 47d1a48404203b494c554cf1a1c1777808620569 /app.js | |
parent | 3c386a9d7c3e1a2c94e1cf7f0cd60f80b108cf18 (diff) | |
parent | e212c731dd0348434586de8fdbdad383d3072fae (diff) |
Merge pull request #27 from dariusk/email-templates
Refactor email to use source-controlled templates
Diffstat (limited to 'app.js')
-rwxr-xr-x | app.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 // |