Thanks Kornel, it works! :)

And as for the character "&" - it is sometimes used in href of <a> (in $_GET globals), for example:
<a href="index.php?site=team&id=2">Team 2</a>
In this case i don't get any error - well this char is ok in href, in phptal templates? Or maybe it is better to add href to <a>'s by js?

In my main template i have:
<script type="text/javascript" src="inc/jquery-1.2.6.js"/>
<script tal:on-error="" metal:use-macro="sites/${site}.html/js"/>
(including jquery framework and macro of JS scripts for current page)

And is there some method in phptal, to unset these two lines, if there aren't any scripts (no macro "js" defined) in current page template? If there aren't any JS script, jQuery framework isn't required at all :) Maybe there is some better way to include js scripts for each page in phptal?


PHPTAL mailing list

Reply via email to