KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am having a problem getting Haml to close br tags. I have tried the following with no luck: %br %br/ I expect this to result in <br /> , but it always outputs as <br> , even with the slash character on the end. I have also tried adding the following options to application.rb (and I tried environment.rb) Haml::Template.options[:autoclose] = ['meta', 'img', 'link', 'br', 'hr', 'input', 'area', 'param', 'col', 'base'] Am I missing something? I though Haml was supposed to autoclose these tags by default??
Tags (comma-separated)
Save Edits
Cancel