Best practices with templating

I think that the more standard approach is the fourth.

In the layout:

<%= yield :sidebar %>
<%= yield :sidenav %>

Put the div in the partial?


<% unless yield(:sidebar).blank? %>
  <div id="sidebar">
    <%= yield :sidebar %>
<% end %>

Hi Philip,

You might find this article of interest.

I meant to post it earlier, but forgot to. It might answer some of your questions.