Django-like nested templates with Rails layouts

JonSidnell
Sat, 05 Jul 2008 23:38:35 -0000

Hi everyone

I''ve been briefly flirting with Django, and have decided that
I''m
going to stick with Ruby on Rails for the time being. The only thing I
think I''m going to miss is Django''s implementation of nested
templates.

Thinking my way through it now, the closest I can think of would be to
bundle the common content off into a load of partials (say "header",
"menu", "footer" and so on). While this is better in that
changing
things within the partials would be accomplished in just one place,
but it would still result in a bunch of files with very similar
content, that would all need amending should I want to add an extra
partial to each layout.

Has anyone got any strategies or ideas for accomplishing gives you?

Thanks
Jon