convert sample to haml and add some stuff