Re: [SMARTY-DEV] template param syntax
| From: | boots | Date: | Tue, 16 Dec 2003 00:33:02 +0000 |
| Subject: | Re: [SMARTY-DEV] template param syntax | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1994@lists.php.net to get a copy of this message | ||
--- Luna Kid <listreader@neuropolis.org> wrote:
> {err "sdfsdf" fatal}
>
> Obviously, the latter form has its clear merits for template
> users. (I'm sure everybody agrees this. So far so good.)
I see your point, but I for one don't agree that it is necessarily
better. That doesn't mean it doesn't have merit in some cases. The cool
thing is that nothing stops you from supporting that in your own custom
plugins if you wish--you 'simply' have to write your plugin as a
compiler function as opposed to a standard function plugin. In that
case, Smarty does not automatically handle the paramater assigning--it
is left for your compiler function to do that. I believe messju already
noted this in the original thread.
> So, please, I hereby BEG you... Please, add this feature
> and drop the rigid adherance to the superfluous
>
> arg="afsfadf"
>
> syntax!
Please don't! Doing so would break every single installation currently
using Smarty. Why would that be a good thing? I could be wrong, but I
doubt that order-based parameters (as opposed to named parameters) will
ever be supported for standard function plugins.
> {if 0}
>
> (and more?) already *is* officially supported...
Don't confuse built-in constructs like "if" with standard function
plugins. Again, if you wish, you *CAN* achieve this with a compiler
function plugin.
xo boots
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/