Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 1d6a74eaf074ff9a4f105119d16a73fde36c04be @bengourley bengourley committed Jun 2, 2012
Showing 546 changed files with 52,356 additions and 0 deletions.
33 app.js
@@ -0,0 +1,33 @@
+/*
+ * Module dependencies
+ */
+var express = require('express')
+ , stylus = require('stylus')
+ , nib = require('nib')
+
+
+var app = express()
+
+function compile(str, path) {
+ return stylus(str)
+ .set('filename', path)
+ .use(nib());
+}
+
+app.set('views', __dirname + '/views')
+app.set('view engine', 'jade')
+app.use(express.logger('dev'))
+app.use(stylus.middleware(
+ { src: __dirname + '/public'
+ , compile: compile
+ }
+))
+app.use(express.static(__dirname + '/public'))
+
+app.get('/', function (req, res) {
+ res.render('index',
+ { title : 'Home' }
+ )
+})
+
+app.listen(3000)

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 1d6a74e

Please sign in to comment.