PHP is just another "templating language". I started to use fasttemplate about 5 years ago and one year later turned to Smarty, I guess I am faimilar with the mechanism and difference between kinds of PHP template engines. I mostly agree what Nicolas Perriault said, unless I want to make my template public to users, they are not my best choice. Actually I feel that PHP is good enough to be a pure presentation language, considered from both convenience and performance.
On Oct 22, 4:20 pm, sokol <[EMAIL PROTECTED]> wrote: > On Oct 16, 2:22 pm, "Lucas Stephanou" <[EMAIL PROTECTED]> wrote: > > > Today symfony doesn't use natively a template system to render presentation > > layer. > > IMHO, the genshi project[1], used in trac 0.11[2], is more efficient output > > generator and I'm working with it in some plugins to internal use here in my > > job. > > All php options( OPT, Smarty, Haml port) that I knew isn't simple, clean, > > and powerful, this in my opinion. > > As Brian Lozier wrote (http://www.massassi.com/php/articles/ > template_engines/): > "The point of template engines should be to separate your business > logic from your presentation logic, not separate your PHP code from > your HTML code" > > So, you are talking about syntax, but not about separating logic from > view in which Symfony is very good! The difference between template > engines is their syntax and features. So, choose of some template > engine is a subjective sentiment. > > I choose PHP because: > 1. PHP syntax is accustomed for me and I know it very well. > 2. PHP is most powerful template language. > 3. My IDE works with PHP well. > 4. Speed efficiency is very good (and if not, it could be improved > with caching) > > Choosing different template engine you have to learn new "markupped" > language which usually is not simpler than programming language. > > My pint is that templates are not for designers but for coders, who > already knows PHP, so there is no need to create something else. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
