template param syntax
| From: | Luna Kid | Date: | Tue, 16 Dec 2003 00:21:38 +0000 |
| Subject: | template param syntax | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1993@lists.php.net to get a copy of this message | ||
Back to an earlier topic of templ. arg. parsing...
Seeing this:
> eg:
> {assign var=temp value=$PRODUCT.NAME|strtolower}
my question is: is the currently favored
{note text="sdfsdf"}
{err text="sdsdf" fatal=1}
syntax still "sacral" nowadays, instead of
{note "sdsdf"}
{err "sdfsdf" fatal}
?
Obviously, the latter form has its clear merits for template
users. (I'm sure everybody agrees this. So far so good.)
(Note also: my own old, simple, preg_...-based PHP template
parser did support the latter, and I'd been *very grateful*
to it for that... :) It had other problems, though, like
nobody maintained it after a while... ;) )
So, please, I hereby BEG you... Please, add this feature
and drop the rigid adherance to the superfluous
arg="afsfadf"
syntax!
(Any good reasons against? I saw some arguments earlier that
said this had to do with XHTML syntax. But, well, AFAIK, XHTML
has exactly nothing to do with Smarty templates, especially with
the unquoted syntagx mentioned at the top of this msg. So,
that is not a particularly good reason.)
Oh, BTW:
{if 0}
(and more?) already *is* officially supported...
So? Can we hope?
Thanks,
Sz.