Re: [SMARTY] smarty+javascript_1

From: Date: Fri, 12 Mar 2004 21:16:28 +0000
Subject: Re: [SMARTY] smarty+javascript_1
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11106@lists.php.net to get a copy of this message
Yes, it is. I use {{ and }}. Works great, and easier on the eyes (IMHO, of course). T Ajay Sharma wrote:
PHPDiscuss - PHP Newsgroups and mailing lists wrote:
{literal} <script language="javascript"> alert ("ggg"); var a=new Array(); var lung=new Array();
       var nr_max={/literal}{$nr_base}{literal};
           i=0; {/literal}
             {section name="i" loop=$table} {literal}
lung[i]= {/literal}{$table[i].nr_suboptions} {literal}; a[i]=new Array(); j=0; alert(j); {/literal} {$table[i].tabel_suboptions} {section name=j loop=$table[i].tabel_suboptions}
 {literal}                 a[i][j]="{/literal}{$table[i].tabel_suboptions[j].dimension}{literal}";
                j++;
                {/literal}                   {/section}    {literal}               i++;
{/literal} {/section} {literal}
Wouldn't it just make more sense to change the delimiters instead of using all these literal tags everywhere? http://smarty.php.net/manual/en/language.function.ldelim.php later, ajay
-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>

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