Is inheiritance possible in layouts?


#1

Is it possible to have one layout extend another one?

For example:

normal.rhtml:

<%= @content_for_layout %>

extra_stuff.rhtml somehow extends normal.rhtml:

<%= @content_for_layout %>

So any page that uses extra_stuff as its layout looks like this:

<%= @content_for_layout %>

Is this possible to do? It would be really handy. Thanks in advance
for
the help!


#2

Dave,

It looks very much like DRYML, part of Habo.

http://hobocentral.net/manual/chapters/3_dryml.html

For my case simple segment layout I’ll just use helper method:

http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat
-yourself-dry-template/

Herry


#3

Is it possible to have one layout extend another one?

Is this possible to do? It would be really handy. Thanks in advance

http://www.google.com/search?q=nested+layouts+in+rails

4th link.