Start your script with <!-- and end with //-->

On 9/2/09, GRolf <ger...@pictureparking.com> wrote:
> I'm using a <tal:block fill-slot="script"> to fill my macro template with
> javascript code. However, all < are converted to $lt;, which (seems
> to) cause an error in a for loop
>
> for (i=0; i < myarray.lenght; i++) {
>  ...
> }
>
> is converted to
>
> for (i=0; i &lt; myarray.lenght; i++) {
>  ...
> }
>
> and I get an error at that line.
>
>
>
> Any way to enforce phptal to put the content from the <tal:block> to
> be passed as text ?
>
> I tried specifying <tal:block define-slot="structure script">, but
> that doesn't work...
>
>
>
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>


-- 
--
Tjerk

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to