[mod_python] Is PSP block embeddable to another PSP block ?

Graham Dumpleton grahamd at dscpl.com.au
Mon Sep 25 07:15:34 EDT 2006


On 20/09/2006, at 8:34 PM, durumdara wrote:

> Hi !
>
> I search for the same thing in PSP like in Zope ZPT.
>
> <p tal:repeat=....>
>    <p tal:replace=....>
>        <p tal:repeat=...>
>            ....
> <%
> for i in range(3):
> %>
>    <p>
>    <%= i %>
>   </p>
> <%
>    for j in range(3):
> %>
>        <p>
>        <%= j %>
>       </p>
>
>
> But how can I do ? Anyone knows an example to it ?

See previous postings in mailing list archives about this. For example:

   http://www.modpython.org/pipermail/mod_python/2005-May/018102.html

In short, you need to use comment hints so that indenting is understood
in some cases.

Graham


More information about the Mod_python mailing list