Re: Petal includes, again!

Josh Narins <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
> Well, at least I only have one problem :)
> 
> I've been using  
> <tag tal:replace="structure include: ${content}" />
> 
> Where $content contains the name of an xml file, relative to the
> template base_dir, and it works fine...
> 
> But it seems as if this doens't work recursively.
> 
> I see this in the XHTML source...
> 
> <tag tal:replace="structure include: login.xml"></tag>

I didn't mean recursively, I meant iteratively?

It doesn't seem to work if I use it in a template which I am using it
from:

main.xml:
---------
<html>
 <head><title>hi</title><head>
 <body>
  <tag tal:replace="structure include: ${is_included}"></tag>
 </body>
</html>

is_included.xml:
---------------
<table>
 <tr>
  <td>menu stuff</td>
  <td>
   <tag tal:replace="structure include: ${not_working}"></tag>
  </td>
 </tr>
</table>

not_working.xml:
----------------
this file is not included
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCbY/FqmX4LWzvJuARAqAqAJ932h+GGUYjsHLba3Jrgj5f6IBDRgCfUTpw
XF7/xRqM3qdt4lOdc04dRHA=
=2SSk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.