haml compile logic