Convert index to Haml.