refactore haml-templates for angular