Cache digest support

Mostly a copy of how this same feature was implemented in haml-rails. 

slim-template/slim-rails#39