Hello Guys.
Trying to do this:
render = web.template.render(..., globals={..., 'render': render})
Of course, that isn't possible, because I cannot pass a yet-to-create
instance in the constructor.
So, I tried this:
render = web.template.render(...)
render._add_global(render, 'render')
But this doesn't work, because Python calls the __getattr__ method inside
the Render class which then looks for a template and raises an
AttributeError.
I need to find a way to bypass this, otherwise, I will go mad. I want to
import little blocks into my templates, like this:
$:render.blockx("var1", "var2", "var3")
Thank you guys.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.