re write templates with haml