diff --git a/src/index.js b/src/index.js index cc5b511..c0f5746 100644 --- a/src/index.js +++ b/src/index.js @@ -15,11 +15,12 @@ app.set('views', path.resolve('views/')); var username = 'ARN'; -app.get('/', (req, res) => - res.render('index') -); +app.get('/', (req, res) => { + // Render index.mustache and pass username through. + res.render('index', {username: username}); +}); app.get('/scss/:file', (req, res) => - res.sendFile(path.resolve('scss/' + req.params.file)) + res.sendFile(path.resolve('scss/' + req.params.file)); );