>> And it's also a good idea to put JS code in an external file like that :
> This is not possible, as we have to generate the js code per page request.
src="code.php"></script>and use a php file to generate js file,
instead of abovementioned methods.
PHPTAL mailing list