RE: Smarty and speed
| From: | Pablo | Date: | Sat, 08 Dec 2001 21:27:31 +0000 |
| Subject: | RE: Smarty and speed | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2216@lists.php.net to get a copy of this message | ||
Brent,
Your comments are not fair. Templating has obvious advantages and we see
that very clearly.
What makes Smarty different to PHPLIB and Fasttemplates? Well, most notable
is that Smarty actually allows you to code display logic from inside your
templates. It is allows you to "program" your templates from within your
templates.
Why do I mention this? Well, as you pointed out "separation of back end PHP
code from presentation" is important. But when using Smarty all you really
accomplish is to replace PHP with another language( i.e. Smarty). This means
your designers still need to learn how to "program". Albeit with a
different language.
While we're on the subject of templating... Templating is most effective
and advantageous when you separate "Code" from Presentation. Not just PHP.
I wish you would not blindly accuse people of ignorance. Collaboration
should be more constructive than that. Discussing pros and cons of a
technology is not sacrilege. It's the expression of thought that makes
technology get better.
Pablo
-----Original Message-----
From: Brent R. Matzelle [mailto:bmatzelle@yahoo.com]
Sent: Saturday, December 08, 2001 4:02 PM
To: smarty@lists.ispi.net
Subject: [smarty] RE: Smarty and speed
--- Pablo <phpshop@phpshop.org> wrote:
> To be honest, I still find it hard to make the argument for >
Smarty. A cleaner syntax and built-in caching is nice. But >how do
I convince a team of people to adopt it just because the >syntax is
less terse? There has to be a killer reason... That's >what I cannot
seem to find. :(
The big reason why Smarty, and any templating tool really, is so
effective are the separation of back end PHP code from presentation.
I can use the same back end PHP code to display HTML, XML, WML, etc.
Plus, if you are using strictly HTML then you can use tools such as
Dreamweaver to do rapidly create template pages without messing up
your PHP code.
With Smarty I can allow my graphics and layout designers to fool
around with the program interface without messing up my cleanly coded
PHP. Two people can work on the page at the same time. Even if
Smarty were the slowest tool in the world this flexibility would
still sell me on this product. But the fact is Smarty is lightning
fast, even faster than PHPLIB template, so there is no reason why not
to use it. If the people in your organization cannot see these gains
then that's sad.
Brent
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
---
You are currently subscribed to smarty as: phpshop@phpshop.org
To unsubscribe send a blank email to $subst('Email.Unsub')
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/