RE: breaking from loops

From: Date: Wed, 27 Feb 2002 17:16:22 +0000
Subject: RE: breaking from loops
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2870@lists.php.net to get a copy of this message
I agree that this particular function wouldn't be too useful, nor would be recommended. However, the plugin architecture allows for additional functionality without performance compromise. At least that is the idea. I believe we'll have "core" plugins that come bundled with Smarty, along with a repository for downloadable & user-contributed plugins. Monte "Brent R. Matzelle" wrote: > > --- travis@dawnstar.org wrote: > > It certainly could be rewritten that way! Of course, by the time I > > realized I could specify loop iterations right in the template, I > > had > > already rewritten it in a completely different way. :-) > > I don't want to be a killjoy to all those who want more functionality > in Smarty but I believe that the current functionality is more than > adequate for any programmer. This "break" functionality should be > accomplished in PHP, end of story. You defeat the purpose of using a > template layer when you place unnecessary control structures like > that into it. I have seen many other posts for functionality > requests along similar lines and I would like them to stop. Smarty > should be one of the fastest template engines out there but all this > unnecessary functionality will slow down Smarty's performance while > not adding much benefit. In the end this code bloat can kill the > Smarty project as more benchmarks are released. Some recent > benchmarks prove that Smarty is rather slow right now without an > accelerator program. > > I propose that we lay down some coding laws about Smarty that can be > placed somewhere on the project page. They might read something > like: "The Smarty development group will not consider adding > functionality which can be easily replicated in a normal PHP script. > If you want a function to be added to your version of Smarty then add > it on your copy or use the plugin interface. If you think that it > should be included in the main distribution of Smarty then submit it > as a plugin only. These rules are in place to make the Smarty the > purest and fastest template engine out there." > > Brent > > __________________________________________________ > Do You Yahoo!? > Yahoo! Greetings - Send FREE e-cards for every occasion! > http://greetings.yahoo.com > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#2870) next »