 	catch error
 		console.error "Error while pushing asset: #{asset}. Error: ", error
 
-pushTemplate = (templateName, res) ->
+pushTemplate = (templateName, req, res) ->
 	try
-		res.push '/partials/map'
+		res.push '/' + templateName
 		,
 			'Content-type': 'text/html'
 		,

fs = require 'fs'

app = express()


###
	Configuration

			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

