Back to top.
HAML Sucks

Learnt HTML, learnt CSS and all of a sudden HAML/SASS come along and spoil your fun, particularly when you’re enjoying the server-side javascript combination of Sinatra-like express and stompingly fast node. So here’s how to get good old regular HMTL, JS and CSS served up:


require.paths.unshift('../../express.js/lib')
require('express')
require('express/plugins')

configure(function(){
	use(Logger);
	use(Static);
	set('root',__dirname);
});

get('/', function(file){ 
	this.redirect('/index.html');
});

get('/:file.html', function(file){
	this.sendfile(__dirname + '/public/'+file+'.html');
	}
);

get('/style.css', function(file){
	this.sendfile(__dirname + '/public/style.css');
	}
);

run();
http://tmblr.co/ZkesJyYUq_E