Define and use a function within the same HAML file
I’ve got a light-weight haml-based site that I’m building with Middleman (not Rails, but I’m tagging this with Rails because I think Rails people might know the answer).
Is there an easier way to write this down and prevent duplicate code?
I am using middleman (Ruby on Rails) with HAML.