News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Bence Eros' Blog: Getters, setters, performance

Kinsta.com: Real-World WordPress Benchmarks with PHP5.5 PHP5.6 PHP-NG and HHVM

Roy Ganor-Shwaartz's Blog: PDT Gets Smarty

Ray Cheung's Blog: Comparison Between Zend and CakePHP Framework

WaxJelly Blog: How to write a custom Smarty function in PHP


Community Events





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


developer community podcast symfony list interview introduction configure language install code application api series bugfix laravel threedevsandamaybe library release wordpress

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