On 20-11-2008 at 16:53:52 Szymek Przybył <[EMAIL PROTECTED]> wrote:

Sorry, this:

<tal:block tal:condition="exists:js">
<script type="text/javascript" src="inc/jquery-1.2.6.js"/>
<script type="text/javascript"><tal:block replace="structure '/*<![CDATA[*/'"/>
<tal:block metal:define-slot="js"/>
<tal:block replace="structure '/*]]>*/'"/></script>

don't work - chars '<' '>' are replaced by entities before it will be between <![CDATA[ ]]> :)

Of course it doesn't. You're writing XML document and you have to follow XML escaping rules. Tagsoup-like hacks will only make it harder.

Don't abuse structure keyword. Use CDATA block in the element that has metal:fill-slot="js".

regards, Kornel

PHPTAL mailing list

Reply via email to