[Petal] Petal includes, again!

Josh Narins josh at narins.net
Tue Apr 26 01:48:06 BST 2005


> 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.webarch.co.uk/pipermail/petal/attachments/20050425/689dd441/attachment.bin


More information about the Petal mailing list