Resent: [SMARTY-DEV] smarty custom functions namespaces

Michael Davey <[email protected]> Tue, 26 Jul 2005 18:20:09 +0100
Newsgroups gmane.comp.php.smarty.devel
Organization Artimi Ltd
Message-ID <[email protected]>
Andrei Zmievski 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".

My motivation for adding this was precisely because I don't like PHP in
templates.  At the moment, we assign a whole bunch of data to smarty
variables then call the template.  Because TikiWiki is skinnable, we
have to set a varaible for every possible value a template designer
might want to use in their template.

With this patch, the template designer can simply 'fetch' the data they
want to display without the overhead of retreiving a whole bunch of data
they don't need.  PHP classes and Smarty with this patch is very
simmilar to the interaction between Java classes and JSP pages.

-- 
Michael

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php