Re: [SMARTY] smarty+javascript_1
| From: | Monte Ohrt | Date: | Fri, 12 Mar 2004 22:03:03 +0000 |
| Subject: | Re: [SMARTY] smarty+javascript_1 | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11107@lists.php.net to get a copy of this message | ||
Another option is to use {ldelim} and {rdelim} in place of the
javascript curly braces.
On Fri, 2004-03-12 at 15:16, Travis Low wrote:
> 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>