 fs = require 'fs'
 
 app = express()
-
 
 ###
 	Configuration

app.get "/", (req, res) ->
	if res.isSpdy and res.push?
		pushAsset asset, res for asset in config.assets
		pushTemplate '/partials/map', res
	routes.index(req, res)

app.get "/partials/:name", routes.partials

			stream.on 'error', (error) ->
				console.error "SPDY stream error while pushing template: #{templateName}", error

			app.render templateName, (err, renderedString) ->
				if err?
					console.error "Error while pushing template: #{templateName}. Error: ", err
					return
				stream.end renderedString
	catch error
		console.error "Error while pushing template: #{templateName}. Error: ", error

