Partial HAML templating in Ruby without Rails
问题 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 HAML file inside my HAML template. But I haven’t found a good—or really usable—way of doing this. For example, I have these two HAML files: documents.haml %html %body = include(menu.haml) body %article … menu.haml %ul %li %a whatever … Include is obviously not the way to go here. But it does a nice job describing what I’m trying to