From d98d8a4dbdbe23179b1512102f3fee16b5297b5a Mon Sep 17 00:00:00 2001 From: Bram van der Veen <96aa48@gmail.com> Date: Wed, 24 Jun 2015 12:56:57 +0200 Subject: [PATCH] Bezig met het toevoegen van stylesheets en jade templates. --- resources/jade/home.jade | 8 ++++++++ resources/less/style.less | 2 ++ web.js | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/jade/home.jade b/resources/jade/home.jade index e69de29..dd91f3b 100644 --- a/resources/jade/home.jade +++ b/resources/jade/home.jade @@ -0,0 +1,8 @@ +html + head + title Hoe werkt Werkmanrooster ? + link(rel="stylesheet", href="/css/style.css", type="text/css") + link(rel="stylesheet", href="/css/skeleton.css", type="text/css") + + body + h1 HEY THERE diff --git a/resources/less/style.less b/resources/less/style.less index 8b13789..5b7e679 100644 --- a/resources/less/style.less +++ b/resources/less/style.less @@ -1 +1,3 @@ +body { +} diff --git a/web.js b/web.js index 1b5ffde..067417c 100644 --- a/web.js +++ b/web.js @@ -15,7 +15,7 @@ app.use('/css', less(__dirname + '/resources/less')); app.use('/other', express.static(__dirname + '/resources/other')); app.get('/', function (req, res) { - res.send('Hello world!'); + res.render('home'); }); app.listen(1025);