On Wed, Sep 29, 2010 at 4:19 PM, Greg Milby <[email protected]> wrote:
> So, in base.html, if i had:
> $def with (var1, var2, render.xyz())
You can't have a method call there. You could pass render.xyz() to
base, which is what I described in my reply.
> it will globally render against any template that is evaluated in the
> base.html (called from the render in code)?
I don't understand the concept of 'global rendering', but the template
instance will act just like any other variable you care passing to the
template.
> If so, it would be curious to know if variables for pagination, current
> link, other base-type functions could be passed in.
> i'll play with the first part first :)
It's like arguments for a function, really. If you know what x, y, and
z mean in:
def myfunc(x, y, z):
pass
then you can apply the same to Templetor templates.
--
Branko Vukelić
[email protected]
[email protected]
Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny
Gimp Brushmakers Guild
http://bit.ly/gbg-group
--
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.