From 2edbd454e8e046d48f16ca5a5465a47ff1b249a2 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 26 Mar 2013 13:22:52 +0100 Subject: made a universal error-file --- router.js | 2 +- views/error/404.ejs | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 views/error/404.ejs diff --git a/router.js b/router.js index d0442b8..6279d62 100644 --- a/router.js +++ b/router.js @@ -45,7 +45,7 @@ module.exports = function(app) { */ app.get('*', function(req, res) { - res.render('error/404', { title: 'Fant ikke siden' }); + res.render('error', { title: '404', text: 'Fant ikke siden' }); }); diff --git a/views/error/404.ejs b/views/error/404.ejs deleted file mode 100644 index 22ba15d..0000000 --- a/views/error/404.ejs +++ /dev/null @@ -1,10 +0,0 @@ -<% include ../header %> - - - -

<%= title %>

-

Velkommen til <%= title %>

-

Her kommer det kanskje mer senere.

- - -<% include ../footer %> -- cgit v1.2.3