[Petal] docs question?

Fergal Daly fergal at esatclear.ie
Sat Jul 19 17:55:34 BST 2003


In the UGLY SYNTAX section it says this

       And you want to display:

         <title>Hello : Foo : Bar : Baz</title>

       Which is not doable with TAL without making the XHTML invalid.  With
       the UGLY SYNTAX you can do:

           <title>Hello<?for name="string my_var"?> : <?var 
name="string"?><?end
?></title>


What would be the problem with

<title>Hello
	<span petal:repeat="string my_var" petal:omit-tag>
		: <span petal:replace="string"/>
	</span>
</title>

It's a little wordy but it doesn't require any non-TAL and the XHTML is still 
valid,

F



More information about the Petal mailing list