Change rails view output from helper <p>I have rails helpers (<code>hs_if</code>, <code>hs_else</code>):</p> <pre><code>= hs_if :current_user do Hello, {{ current_user/name }}! = hs_else do = link_to 'Sign In', sign_in_path </code></pre> <p>...which produces handlebars templates:</p> <pre><code>{{#if current_user}} Hello, {{ current_user/name }}! {{else}} &lt;a href="/signin"&gt;Sign In&lt;/a&gt; {{/if}} </code></pre> <p>How can I render <code>{{#if current_user}} ... {{else}} ... {{/if}}</code> without nesting <code>hs_else</code> in <code>hs_if</code>?</p> <p>I think I should remove <code>{{/if}}</code> from output, but I can't find way to do it in helper.</p>