I have several parts that I include in the Rails application.html.erb file , but the resulting HTML does not preserve my indentation (formatting). I was told that the first line receives the visualization with the same level of indentation as the call to _partial.html.erb , but all subsequent lines in partial order are simply left-aligned.
The result is code like (see my comments for positioning):
<body> <div id="outer"> <div class="contentwidth main"> <div class="logo"> <<<<< Shouldn't be this far to the right <h1><a href="index.html">minimal.</a></h1> </div><!-- end logo --> <<<<<<< Shouldn't be way over to the left
Is there a way to fix this / format my included particles better with ERB? Or do I need to use HAML?
Trent scott
source share