Skip to content

Instantly share code, notes, and snippets.

@simonmcmanus
Created March 27, 2013 15:58
Show Gist options
  • Save simonmcmanus/5255363 to your computer and use it in GitHub Desktop.
Save simonmcmanus/5255363 to your computer and use it in GitHub Desktop.
/**
* Module dependencies.
*/
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
app.configure(function(){
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'sizlate');
});
app.get('/', function(req, res){
res.render('index', {
layout: 'layout',
selectors: {
'h1': 'Sizlate',
'link': {
href: 'viii'
}
}
});
});
http.createServer(app).listen(app.get('port'), function(){
console.log("Express server listening on port " + app.get('port'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment