Created
March 27, 2013 15:58
-
-
Save simonmcmanus/5255363 to your computer and use it in GitHub Desktop.
added to the basic example found here: https://github.com/simonmcmanus/sizlate/tree/master/examples/basic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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