gravityblast / web-app-theme

A simple theme for web apps
Other
2.45k stars 387 forks source link

Force more html2haml more strict parser so that HAML views are correct #12

Closed nicolasblanco closed 13 years ago

nicolasblanco commented 13 years ago

The generated "new" and "edit" views when using the themed generator with engine=haml are corrupted. The line :

= render :partial => "form", :locals => {:f => f}

that renders the form is not correctly indented and thus is not included in the form block.

The good news is that by using the --xhtml option of the html2haml executable, this line is correctly indented...

nicolasblanco commented 13 years ago

See before/after : http://gist.github.com/600794

gravityblast commented 13 years ago

patch applied, thank you!