On 10-Nov-07, at 1:15 PM, Sutabi wrote:
>
> Is there some builtin method for including templates within other
> templates? I couldn't find it in the docs and searching here didn't
> yield much.
You can pass result of one template to other template as an argument.
render.base(render.page(title, body))
or add render to template.Template.globals and access $:render.foo()
in other templates.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---