Answered my own question. The answer IS to use $def with (var) on the
child template. Seems like the server wasn't re-loading the code so I
was not seeing the right results earlier.



On Nov 2, 10:11 pm, Gyle <[email protected]> wrote:
> How do you pass a variable from a handler to a template that
> "inherits" from a base template? For example:
>
> class index
>   def GET(self):
>     return render.index("variable")
>
> $def with (var) on the child template doesn't recognize the passed
> variable because the base template is fielding variables from the
> child template's page.

-- 
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