Permalink
Browse files

server updates

  • Loading branch information...
1 parent 32a4cfc commit 9037b1a6980ddadcac0085f831a4cb0428e70be2 @robrighter committed Aug 9, 2012
Showing with 7 additions and 2 deletions.
  1. +6 −2 server.js
  2. +1 −0 views/index.jade
View
@@ -2,6 +2,7 @@
var connect = require('connect')
, express = require('express')
, io = require('socket.io')
+ , scraper = require('scraper')
, port = (process.env.PORT || 8081);
//Setup Express
@@ -58,15 +59,18 @@ io.sockets.on('connection', function(socket){
/////// ADD ALL YOUR ROUTES HERE /////////
server.get('/', function(req,res){
- res.render('index.jade', {
+ res.render('index.jade', {
locals : {
title : 'Your Page Title'
,description: 'Your Page Description'
,author: 'Your Name'
- ,analyticssiteid: 'XXXXXXX'
+ ,analyticssiteid: 'XXXXXXX'
+ ,thetext: "DASHBOARD"
}
});
});
+
+});
//A Route for Creating a 500 Error (Useful to keep around)
View
@@ -1,6 +1,7 @@
extends layout
block content
+ div=thetext
div
a(id='sender')='Send a Message'
ul(id='receiver')

0 comments on commit 9037b1a

Please sign in to comment.