slim
slim copied to clipboard
Rendering <pre> tag in Slim partials within Haml
When I include Slim templates in Haml ones, there are whitespaces as they were in the parent/container partial, where render
is called.
This means everything is altered - including <pre>
tags - and adds spaces in front of each line. So, everything is indented in the <pre>
tags.
I don't know whether Slim, Haml, or the Rails rendering engine does it, but it would be useful if it did not do this.