Re: [SMARTY-DEV] Handling TRUE,FALSE,NULL,ON,OFF, etc
| From: | Andrei Zmievski | Date: | Fri, 09 Apr 2004 20:27:23 +0000 |
| Subject: | Re: [SMARTY-DEV] Handling TRUE,FALSE,NULL,ON,OFF, etc | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2274@lists.php.net to get a copy of this message | ||
On Fri, 09 Apr 2004, messju mohr wrote:
> hmm. to me this was always intuitive:
> - "true", "false", "on", "off" and "null" are
> case-sensitive and special.
> - all other \w+ are treated as strings.
>
> please don't break stuff like {assign var=foo value="v"} or
> {$var|escape:javascript} by treating invalid (=unknown) tokens as
> syntax-errors.
Hmm, what's unknown in {assign var=foo value="v"}? Now, if you did
{assign var=TRUE value="v"}, I see a probem there, because it would look
like you are assigning a boolean value to 'var'.
- Andrei