Re: [SMARTY] javascript & '{' '}'

From: Date: Wed, 28 Aug 2002 06:26:49 +0000
Subject: Re: [SMARTY] javascript & '{' '}'
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5849@lists.php.net to get a copy of this message
On Wed, 28 Aug 2002 09:05:51 +0300 Lyubomir Simich <simich@soft-ukraine.com> wrote: > Hello Everybody! > > Example: > <script language="JavaScript"> > function myfun() > { > // function body > } > </scripr> > > Smarty think about {} as smarty-tag. > Now I use {php}echo '{'{/php} instead of {. > How I can use '{' & '}' symbols in JavaScript and other places? Use {literal} tag (see smarty manual for details): {literal} <script language="JavaScript"> function myfun() { // function body } </script> {/literal} -- Sincerely yours, Grigory V. Kareev

« previous php.smarty.general (#5849) next »