dot.Using Making technology about computers, and computers about usability.

Posts Tagged haml

HAML Caching CGI

Mike Zillion asked about how to make HAML a processor (of haml files) for Apache on the HAML Group on Google. That inspired me to write a proper wrapper with caching that will Hamlize templates into HTML and cache those for speedy access on subsequent requests. This is what I came up with:


Writing helpers with Haml and rSpec

Recently Wolfman posted a description about Rails helpers written with Haml::Helpers#open and rSpec. I want it to be more DRY than it is, since the whole application is using rSpec and Haml, all helpers should have the same before(:each) So basically – what I did was :