Re: [SMARTY-DEV] smarty custom functions namespaces

[email protected] (Andrei Zmievski) Thu, 21 Jul 2005 10:34:52 -0700
Newsgroups php.smarty.dev
Message-ID <[email protected]>
Yes, and that's what scares me about Smarty.

-Andrei

On Jul 21, 2005, at 9:30 AM, boots wrote:

> You know full well that PHP does not have namespaces :)
>
> --- Andrei Zmievski <[email protected]> wrote:
>
>> Do you people realize that you are proving Rasmus's theorem with
>> every such thing? I am speaking of "Every template language evolves
>> until it turns into PHP".
>>
>> -Andrei
>>
>> On Jul 21, 2005, at 3:19 AM, Michael Davey wrote:
>>
>>> Hi,
>>>
>>> I've added a crude form of namespaces to my private copy of Smarty.
>>> A template function like:
>>>
>>> {namespace:test}
>>>
>>> ...causes the test() function in the smarty_function_namespace
>>> class to be called.
>>>
>>> I'm planning to use this feature in TikiWiki to provide
>>> accessor-like template functions to access various data:
>>> article::title, article::description and so on.  I though that this
>
>>> might be of more general use, so here is a patch for this morning's
>
>>> CVS snapshot of Smarty.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -- 
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php