aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js6
-rw-r--r--views/index.handlebars2
2 files changed, 6 insertions, 2 deletions
diff --git a/index.js b/index.js
index faad613..a2f0b94 100644
--- a/index.js
+++ b/index.js
@@ -17,7 +17,11 @@ app.use(express.json());
app.use(express.urlencoded({extended: false}));
// Homepage Route
-app.get('/', (req, res) => res.render('index'));
+app.get('/', (req, res) =>
+ res.render('index', {
+ title: 'Member App'
+ })
+);
// Set static directory
app.use(express.static(path.join(__dirname, 'public')));
diff --git a/views/index.handlebars b/views/index.handlebars
index 4046d99..6213adc 100644
--- a/views/index.handlebars
+++ b/views/index.handlebars
@@ -1 +1 @@
-<h1>Members</h1>
+<h1>{{title}}</h1>