module Haml::Helpers
def is_haml?
also works in other ActionView templates,
This function, unlike other Haml::Helpers functions,
Returns whether or not the current template is a Haml template.
def is_haml? !@haml_buffer.nil? && @haml_buffer.active? end