Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Todd Blanchard
I like the rails mechanism for specifying page layouts (boilerplate template that surrounds the currently rendered view). Its simple and obvious. I cannot, having read most of two books on django now along with the website stuff, figure out how to do the same thing in django. Also, I'm build

Re: Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Bill Freeman
I haven't done rails, but my boilerplate is in a template that is "extended" by the page specific templates. In fact, I have multiple levels: section specific boilerplate templates that extend a site wide template, with the section specific templates being extended by the page (type) specific tem

Re: Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Andy Mckay
On 09-11-12 10:35 AM, Todd Blanchard wrote: > I like the rails mechanism for specifying page layouts (boilerplate > template that surrounds the currently rendered view). > > Its simple and obvious. Use the "extends" tag. If you want rails style boilerplate, there's always "include" http://docs.d

Re: Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Ismail Dhorat
Hey man, your question is not entirely clear but: If you dont want to repeat yourself, you typically would use extend tags as everyone has said. These templates can be as deep as you want it, (not sure about the performance impact) but you could have and i have used this Base Template |-Sub