Indentation in ERB templates : <p>I have the following entry in an <code>erb</code> template:</p>

<pre><code># Lorem Ipsum...
&lt;% unless @foo['bar'] == nil %&gt;
    &lt;% @foo['bar'].each do |property, value| %&gt;
        &lt;%= "zaz.#{property} #{value}" %&gt;
    &lt;% end %&gt;
&lt;% end %&gt;
</code></pre>

<p>That is parsed to:</p>

<pre><code># Lorem Ipsum...
       zaz.property value
</code></pre>

<p>How can I remove the leading spaces so that lines are not indented in the resolved template?</p>

<p>I would like to avoid using something like:</p>

<pre><code># Lorem Ipsum...
&lt;% unless @foo['bar'] == nil %&gt;
    &lt;% @foo['bar'].each do |property, value| %&gt;
&lt;%= "zaz.#{property} #{value}" %&gt;
    &lt;% end %&gt;
&lt;% end %&gt;
</code></pre>
