# inheriting template
<%inherit file="foo.html"/>
<%page args="x, y, z"/>
x y z are ${x} ${y} ${z}
# inherited template
<%
x = 1
y = 2
z = 3
%>
${next.body(x=x, y=y, z=z)}
this is another thing that I have failed to place a specific example
for in the docs.
hope this helps.
- mike
On Aug 9, 9:17 pm, "keniche...@gmail.com" <keniche...@gmail.com>
wrote:
- Kenny
# inheriting template
<%inherit file="foo.html"/>
<%def name="stuff()"><%
return (3, 4, 5)
%></%def>
# inherited tempalte
<%
(x, y, z) = self.stuff()
%>
*or*
# inherited tempalte
<%
(x, y, z) = next.stuff()
%>
On Aug 10, 11:39 am, Michael Bayer <mike...@zzzcomputing.com> wrote:
> the best way to do vice versa right now is to define defs in your
> inheriting template:
>
> # inheriting template
> <%inherit file="foo.html"/>
>
> <%def name="stuff()"><%
> return (3, 4, 5)
> %></%def>
>
> # inherited tempalte
> <%
> (x, y, z) = self.stuff()
> %>
>
> *or*
>
> # inherited tempalte
> <%
> (x, y, z) = next.stuff()
> %>
>
On 10 авг, 22:39, Michael Bayer <mike...@zzzcomputing.com> wrote:
> the best way to do vice versa right now is to define defs in your
> inheriting template:
>
> # inheriting template
> <%inherit file="foo.html"/>
>
> <%def name="stuff()"><%
> return (3, 4, 5)
> %></%def>
>
> # inherited tempalte
> <%
> (x, y, z) = self.stuff()
> %>
>
> *or*
>
> # inherited tempalte
> <%
> (x, y, z) = next.stuff()
> %>
>