converting views in books to haml