In your example computation is done in /article handler, that means
that I should call that computation needed for sidebar explicitly in
every handler.  I I suppose I've figured out good solution - import
python module from template (like myproj.side_computations), call some
computation from there and then display the result.


> Not sure about Mako, but the built-in templating engine lets you pipe
> the output of one template rendering into another rendering call. Such
> as (for v0.23):
>   some_calculation = 46 + 2
>   print render.base("RedBaron's Homepage",
>           render.layout(
>                   render.sidebar1(some_calculation),
>                   render.article("Why Python Rules", article_text)))
>

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