Max Ischenko wrote:
Hi,
I'm trying to build template-based site layout following recipe from
http://lesscode.org/projects/kid/wiki/LayoutTemplateRecipe page (second one,
that doesn't use py:layout).
Out of curiosity, why did you decide not to use py:layout?
There is master.kid which contains py:match elements for menu, header, footer
and there is page.kid itself that contains main content. The problem I face is
that I need to render menu (matched from master.kid) differently on different
pages. When I had monolithic page I just passed in a variable and the react
according to variable's value. Now I can no longer access variables from
master.kid, where the menu is being defined.
Is there a way to access that "outer" variables passed to page.kid from master.kid match template? If no, how you're supposed to deal with such situations?
Could you provide a short example that reproduces the problem?
~ Daniel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
kid-template-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss