Re: Recursive request and page layout

2009-08-10 Thread SardarNL
Django solution found - template tags. The way how django discovers the tags makes it easy to publish them. The applications just exports the content as tags and anyone can use it. If request object is needed (for cookie etc) then django.core.context_processors.request template content processor

Re: Recursive request and page layout

2009-08-09 Thread prabhu S
It will be awesome if you can make and open source such a tag. Shouldn't be hard since templates can be evaluated independent of http. If you want something simpler, use iframe and point it to the correct url. Regards, Prabhu On Aug 8, 12:11 pm, SardarNL wrote: > I've

Re: Recursive request and page layout

2009-08-08 Thread SardarNL
I've checked the custom tags and the middleware that automatically registers request object inside the template context, this is all I need to get the recursive call working. However I wonder why such functionality isn't there. Probably there is another way to put content from totally independent

Re: Recursive request and page layout

2009-08-07 Thread Daniel Roseman
On Aug 7, 5:24 pm, SardarNL wrote: > Hi Folks > > Here is the problem, we have some pages that don't contain any > content, but rather layout the blocks which are served by other views. > Extending the template and overriding some blocks is not a solution, > because there are

Recursive request and page layout

2009-08-07 Thread SardarNL
Hi Folks Here is the problem, we have some pages that don't contain any content, but rather layout the blocks which are served by other views. Extending the template and overriding some blocks is not a solution, because there are many unrelated blocks, that can not be rendered by a single view.