nested layouts. closes #208

This commit is contained in:
Thomas Reynolds 2011-12-22 00:42:14 -08:00
parent 4d2e0d8a7d
commit ecea540ec7
10 changed files with 45 additions and 13 deletions

View file

@ -0,0 +1 @@
Template

View file

@ -0,0 +1,4 @@
<% wrap_layout :outer do %>
Inner
<%= yield %>
<% end %>

View file

@ -0,0 +1,2 @@
Master
<%= yield %>

View file

@ -0,0 +1,4 @@
<% wrap_layout :master do %>
Outer
<%= yield %>
<% end %>