converts posts/_form to haml and formats layout for a new post