Refactored .erb into .haml for attachments