title: How to stop rendering page/partial
body: <p>I interested about can I interupt template rendering in the middle of template. For example:</p>
  
  <p><em>items/index.html.haml</em></p>
  
  <pre><code>%h2 Items
  
  -if @items.empty?
    %h3 There are no items
    /X statement/ 
  
  
  -@items.each do |item|
    /items rendering/ 
  </code></pre>
  
  <p>So if there are no items, message will be displayed and page rendering will be interrupted, otherwise item list will be rendered. Only way I can do it now, is throw if-else statement. I tried to use <strong>return</strong> in place of <em>X statement</em>, but seems like it not works like I expect</p>