 
 app.use '/static', exp.static pth.join __dirname, 'static'
 
-# app.use '/content', page_renderer (toffee, requested bit in middle)
 app.use '/(:page)?', (req,res) ->
 	page = req.params.page ? 'home'
 	


render_page = (res,body,page) ->
	res.render 'scaffold', {
		blog: body.blog ? ''
		posts: body.posts ? []
		content: body.content ? body
		page: page
		title: make_title page
	}



			file?
		.map (file) ->
			out = {
				date  : file[1]
				title : hmz.titleCase file[2].replace /-/g, ' '
				path  : [file[1],file[2]].join('-')
			}
			
			if !load then return out
