+1 for Twig. Tags and filters are much more readable than helpers. Sent from my Nexus One
On Sep 22, 2010 8:02 AM, "Lucas Stephanou" <[email protected]> wrote: > Let`s use smarty! > > calm down, just kidding. > > this snippet show all I need to know > >> {% route 'blog_post' with ['id': post.id] %} >> >> <?php echo $view['router']->generate('blog_post', array('id' => > $post->id)) ?> > > in short context this may not be so loud to ours ears, but for sure > that the second one is a break in the flow. > > You did all the code in model and controller, all pieces did right, > and them you fall in the template and it`s just too ugly. > > +1 twig for the rescue > it`s faster > it`s more beautiful > > Vote Twig! > > > > - Lucas Stephanou > > > > > On Wed, Sep 22, 2010 at 8:54 AM, Jordi Boggiano <[email protected]> wrote: >> On 22.09.2010 13:38, Tim Nagel wrote: >>> I would like to see PHP templates remain, or an option to be able to >>> re-enable them by some method. I'm happy for big projects to be using >>> Twig where there are dedicated front end designers working on the >>> templates, but when I'm working on a small project form myself, I would >>> prefer PHP so i might stay in my comfort zone of PHP. >>> >>> Please leave the choice :-) >> >> I think it has to be clear to everyone that the "choice" can not be >> removed, due to the way Symfony2 is built with Dependency Injection, it >> will always be possible to hijack the view layer.. But as previously >> said, you'll most likely have trouble using existing Bundles which might >> in turn convince you to keep using Twig anyway, if it means saving a lot >> of time on the rest of the development. >> >> Cheers >> >> -- >> Jordi Boggiano >> @seldaek :: http://seld.be/ >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com >> >> 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]<symfony-devs%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?hl=en >> > > -- > If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com > > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
