Re: HTML_Template_Flexy or Smarty
| From: | Matthew Weier O'Phinney | Date: | Wed, 15 Dec 2004 13:55:18 +0000 |
| Subject: | Re: HTML_Template_Flexy or Smarty | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204396@lists.php.net to get a copy of this message | ||
* Electroteque <daniel@electroteque.org>:
> hi there I am trying to choose between the two, which one is efficient,
> but is also html programmer friendly and can still do template block
> style templating like fasttemplate or phemplate. I am trying to move
> people who have been using fasttemplate to a more efficient system,
> although these two systems have logic inside the templating.
You're verging on a religious war here...
My predictions:
1) 25% respond in favor of HTML_Template_Flexy
2) 25% respond in favor of Smarty
3) 25% respond in favor of different templating solutions altogether
4) 25% respond asking why you need a templating system at all when you
have PHP
As for my own leanings -- we use Smarty where I work, and I like its
flexibility and the ease with which I can integrate it with regular HTML
(I particularly like that it doesn't use angle brackets as its
delimiters -- makes it easy to spot Smarty directives in the template).
My one complaint about it: no error handling. I wish it had error
handling ala PEAR -- occasionally I get errors in Smarty that end up
being hard to debug due to the complexity of the templates and/or number
of templates we're using to generate a page.
--
Matthew Weier O'Phinney | mailto:matthew@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org