RE: [PHP] template engine...why???

From: Date: Wed, 30 Apr 2003 15:55:02 +0000
Subject: RE: [PHP] template engine...why???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145805@lists.php.net to get a copy of this message
Why do you say Smarty mixes logic and content? Can you provide me a short example illustrating how you improved that? It can be a very useful piece of advice. IMHO it will be good for PHP developers to have a "standarized" way to do templating because you can share templates between applications, code, etc. Sometimes developers code a templating engine just because its then their toy and they have the control... -----Original Message----- From: suds@wocmud.org [mailto:suds@wocmud.org] On Behalf Of Robert Cummings Sent: Wednesday, April 30, 2003 12:48 PM To: luis Cc: php-general@lists.php.net Subject: Re: [PHP] template engine...why??? *checks body signs* Nope, no allergic reaction, however, there are things in the smarty engine I don't like, such as the extensive mixing of content and logic. I must admit to never having actually used Smarty since I have my own templating engine that also compiles to PHP, and which does not mix content and logic like Smarty -- so I guess I consider my own wheel also to be round, perhaps providing a better ride, and it is this insight that makes me think others can make even better engines -- as long as they aren't scared off by people telling not to bother. luis wrote: > > Your inference is right, in my very modest opinion template engines that > parse templates at run-time are not usable. > I don't know if there're other template engines that compile templates > into PHP code so Smarty may or may not be the only one. > If this thread is about templating engines then it is also about Smarty > and many others... Do you suffer some alergic reaction to Smarty? :-) > > -----Original Message----- > From: suds@wocmud.org [mailto:suds@wocmud.org] On Behalf Of Robert > Cummings > Sent: Wednesday, April 30, 2003 12:30 PM > To: luis > Cc: php-general@lists.php.net > Subject: Re: [PHP] template engine...why??? > > By your logic, since you ruled out all other templating systems, then > with this most recent post you have made an assertion that Smarty is the > only round wheel. I'm sure many would disagree. At any rate, time for me > to drop this particular thread branch since the thread is about > templating engines and NOT Smarty. -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#145805) next »