On 20 Sep 2007, at 11:47, Anand wrote:
> The new way to handle this is:
>
> def rendersite(handle):
>      page = handle()
>      return render.site(page)
>
> app.add_processor(rendersite)
>
> This passes output of every request through site template.

What if you don't want every request to go through the template? (I  
can think of many, many instances where that would be the case. AJAX  
handlers, API type things, dynamically generated images, and pretty  
much anything else that's non-HTML.) And what if you want to pass  
some argument to the base template (a page title for instance)?

I've always found it much more natural to handle inheritance on a per- 
template basis.

> Adam Atlas, is your implementation available online? Can you share
> the url?

I can't remember where I uploaded the last release. But the svn is  
<http://svn.adamatlas.org/TTwain>.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to