I really don’t need the overhead of Rails for my very small project, so I’m trying to achieve this just using just plain Ruby and HAML.
I want to include another HAM
def render_file(filename) contents = File.read('views/'+filename) Haml::Engine.new(contents).render end