Skip to content

Commit 31fd007

Browse files
Dan WahlinDan Wahlin
Dan Wahlin
authored and
Dan Wahlin
committed
Comment about view engine
1 parent 3194a86 commit 31fd007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const express = require('express'),
77
session = require('express-session'),
88
errorhandler = require('errorhandler'),
99
csrf = require('csurf'),
10+
1011
router = require('./routes/router'),
1112
database = require('./lib/database'),
1213
seeder = require('./lib/dbSeeder'),
@@ -31,6 +32,9 @@ class Server {
3132
}
3233

3334
initViewEngine() {
35+
//Not currently using the view engine per se
36+
//but added in case index.html needs to include
37+
//server-generated content at some point.
3438
const hbs = exphbs.create({
3539
extname: '.hbs',
3640
defaultLayout: 'master'

0 commit comments

Comments
 (0)