Convert to haml and add links