News Feed
Sections




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

Anthony Ferrara:
On Templating
December 11, 2012 @ 11:50:31

In this latest post to his site Anthony Ferrara take a look at templating in web applications - more specifically as it deals with his experience with the Mustache templating engine.

I've been playing around with tempting engines a lot lately. For a recent project, I needed the ability to re-use the same template set in both JS and PHP (coupled with the History API, providing seamless dynamic behavior, yet still having raw content pages). Realistically today, there's only one choice for that sort of requirement: Mustache. I've learned a lot while playing with Mustache, and it's really changed my entire viewpoint on presentation layer construction.

He briefly gives an overview of "the past" of templating in PHP (including a mention of Smarty) and how templating tools - like Mustache - have helped to improve the situation, especially when it comes to the separation of presentation and processing. As an alternative, there's also a mention of the Twig templating engine in the comments, another popular option from the Symfony project.

0 comments voice your opinion now!
templating presentation mustache twig introduction opinion


blog comments powered by Disqus

Similar Posts

Stefan Koopmanschap's Blog: An Open Letter To The phpBB Community

SitePoint PHP Blog: Hashing Passwords with the PHP 5.5 Password Hashing API

PHPClasses.org: PHP 5.4 Features: Shall you Upgrade to the newer PHP Version?

Lorna Mitchell: Do Open Source with Git and Github

php|architect: PHP 5.3 namespaces for the rest of us


Community Events

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


voicesoftheelephpant laravel5 library series threedevsandamaybe interview extension api community language framework podcast wordpress introduction development release unittest laravel opinion feature

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