diff options
-rw-r--r-- | index.js | 6 | ||||
-rw-r--r-- | views/index.handlebars | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -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> |