We are using Rails 3.2.1 and I'm trying to find out how to use HAML for the email template (if possible). From searching around, it seems possible, but I haven't found a workable solution yet.
This is inside my load_template method:
template = File.read('path/to/template') haml_engine = Haml::Engine.new(template) output = haml_engine.render puts output
But I just get Haml::SyntaxError: Illegal nesting: nesting within plain text is illegal., even when the HAML file is empty.