On Tue, Mar 2, 2010 at 9:21 PM, benhoyt <[email protected]> wrote: > Hi guys, > > A few years ago now, Adam Atlas said this (at > http://groups.google.com/group/webpy/browse_thread/thread/2ff43aba3aeac295/d3b1a1f48551277d): > >> Firstly, the 'render' object should be an automatic global. >> [...snipped...] >> That way, you can just call page(post), instead of base(page(post)) >> (which, as I explained elsewhere, is rather inelegant and violates MVC >> separation). > > Did anything ever happen to Adam's proposal? It seems like the > recommended way now (as per http://webpy.org/cookbook/layout_template) > is to pass render() a "base" keyword arg. I agree with Adam -- it > seems to me that this should be done in the template. Why does > web.py's templator do it in the Python code?
As a side effect of some improvements I'm doing to templetor, this will be possible soon. Stay tuned! -- 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.
