News Feed
Jobs Feed
Sections




News Archive
Volker Dusch's Blog:
Mandatory "Template Engines (Twig) vs Plain Old PHP" Post
March 22, 2011 @ 09:44:37

Volker Dusch has posted what he calls his mandatory templating post comparing the benefits of using plain PHP for templates versus the Twig.

If you read some of my previous posts you know me as a "clean code" guy. I like readable, understandable and maintainable code. The same goes for templates. I need to be able to parse very quickly what is happening.. at least i want to.

He argues that, because the syntax of something like Twig is so much simpler and more readable, it's a better solution in the long run (technical considerations not withstanding). As an example he provides a side by side comparison visual image of the a template for each.

0 comments voice your opinion now!
twig template readability compare


blog comments powered by Disqus

Similar Posts

Smashing Magazine: The Big PHP IDE Test: Why Use One And Which To Choose

Matthew Weier O'Phinney's Blog: Why PHP Namespaces Matter

Pádraic Brady's Blog: Template Lite: A Sweeter Smarty Alternative

Eirik Hoem's Blog: Populate PDF templates with PHP / FPDF / FPDI

Rob Thompson's Blog: Switch vs. If


Community Events









Don't see your event here?
Let us know!


event testing podcast tool interview functional zendframework2 introduction unittest framework object api release development opinion composer language example community code

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework