RE: [SMARTY] Why Smarty (also performances?)?
| From: | Jonathan Chum | Date: | Thu, 31 Mar 2005 20:19:25 +0000 |
| Subject: | RE: [SMARTY] Why Smarty (also performances?)? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12379@lists.php.net to get a copy of this message | ||
In fact, v2.6.9 was just released which fixes a security related bug.
Personally, I've used in over 30 client projects include major eCommerce
projects. No regrets plus anytime I want to do something out of the
ordinary, the engine is already capable of handing or extending to support
additional features.
One example is that I have 80+ page template which there are two types of
users, administrator and visitors. Well, there are layers which I overlayed
areas where the adminstrators can "edit" copy or images. Rather than
building two sets of templates, I use one. I wrote a postfilter function
that goes through and removes the layers prior to presenting the template to
the visitor. If it's admin editing the page, the layers remain in the page.
In terms of performance, I used the internal caching mechanism. That
eliminates any unnecessary re-querying. The last 2 years using it, prooves
no problems for me or for our clients.
Jonathan Chum
Senior Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
AIS Media, Inc. - "We Build eBusinesses"
7000 Central Parkway, Suite #1700
Atlanta, GA 30328
Tel: 770.350.7998 ext. 505 / Fax: 770.350.9409
http://www.aismedia.com / jchum@aismedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: boots [mailto:jayboots@yahoo.com]
Sent: Thursday, March 31, 2005 2:34 PM
To: partners@symbulos.com; smarty-general@lists.php.net
Subject: Re: [SMARTY] Why Smarty (also performances?)?
--- symbulos partners <partners@symbulos.com> wrote:
> > discipline issues). It is worth noting that if you need a secure
> > environment for your templates, Smarty is pretty much your only real
> > (and well tested) option at this time.
>
> What about
>
> HTML_Template_IT(x)
> HTML_Template_Sigma
>
> then?
>
> Are they substantially different?
You'll have to decide for yourself. I actually don't know anything about
their ability to provide a secure environments or maintain such.
Smarty was the first of the compiling templating engines and I suspect it is
still the most popular and most mature. Both of the engines you mention are
part of Pear so they will have their followings and I think that Pear has
some guidelines on maintenance. I've already suggested that Smarty is well
supported, well maintained and actively developed.
> I am a newbie on templating technologies, would like to undertsand
> before making a choice. We need to develop a large scale application.
>
> We are using HTML_Template_IT(x) for prototyping, but is not developed
> since 2003, which is scary.
>
> Is smarty well maintained by a relatively large group of developers?
Again, you will have to decide for yourself. I for one haven't followed the
development of other template engines very closely in the last while. I do
know that Smarty is being actively maintained and developed. As an example,
the last three releases were all done to cover holes discovered in the
secure mode and all were fixed and released within days of discovery.
There are many contributors but the core is a small group. Still, there were
9 releases in the last 14 months starting with 2.6.1. have a look a the
changelog http://smarty.php.net/misc/NEWS
> How are performances for large applications?
Depends on good your application framework is and how well you tune/ setup
your servers. In general, peroformance is excellent and Smarty has several
features that are geared towards optimizing performance in production
environments. In general, Smarty will scale in line with PHP and adds
features such as customizable content caching and customizable resource
loading. YMMV.
> I thank you all gurus in advance.
--
Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php