literal and javascript

From: Date: Mon, 15 Mar 2004 12:15:38 +0000
Subject: literal and javascript
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2198@lists.php.net to get a copy of this message
Have been working on a project recently, and it involved using smarty paramaters within the javascript code. Realising the fact that there are a lot of {literal}{/literal} tags I was pondering the following idea. could smarty somehow have variables within the {literal} tags eg in Backticks or some "non used" javascript code ? eg {literal} function foo{
    bar = $some_smarty_variable + 1;
{ {/literal} just a thought Pete

« previous php.smarty.dev (#2198) next »