Re: Hack to print defines
| From: | Anders Janson | Date: | Fri, 21 Sep 2001 23:36:36 +0000 |
| Subject: | Re: Hack to print defines | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1518@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
>>If you hack smarty (or if it was ever supported), I'd do it in the
following fashion:
>>{$smarty.defined.foo}
Yuck, that's a lot of typing ;)
Well, that would be OK, I guess.
>>We're trying to shy away from different syntaxes for different
variable
types, as this becomes more confusing and harder to support as more are
added.
Good thinking. Remember, I called my hack "Q&D". Very quick, also
quite dirty...
>>I almost wish we would have stayed away from it in the first
place, using {$smarty.config.var} instead of {#var#} for example. But we
can't predict everything :-)
:-D
/Anders