Re: [SMARTY-DEV] RE: [SMARTY] {literal} + variabel
| From: | boots | Date: | Mon, 05 May 2003 14:49:10 +0000 |
| Subject: | Re: [SMARTY-DEV] RE: [SMARTY] {literal} + variabel | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1346@lists.php.net to get a copy of this message | ||
--- Monte Ohrt <monte@ispi.net> wrote:
> What if smarty didn't recognize /{\s/ as a starting delimiter tag?
Hi Monte. That's not at all what I meant. I meant to exploit the fact
that what Smarty considers valid between { and } is not the same as
what other languages find valid. Thus,
> function foo() {
> blah();
> }
My example could have been:
> > {code}
> > <style>body{background:{ #background# };}</style>
> > {/code}
Anyways, maybe its too confusing. One of these days I'm going to check
out the default template handler function to see what it is good for.
> Someone could conceivably write javascript code all bunched together:
>
> function foo() {blah();}
>
> In which case the braces need escaping when braces are the delimiter,
> no different than what we have now.
Although that little segment inside the braces is not valid Smarty--and
the compiler knows that.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com