News Feed
Jobs Feed
Sections




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

Jani Hartikainen's Blog:
What would make template engines actually useful?
January 19, 2009 @ 08:44:10

In a recent blog post, Jani Hartikainen looks at a two things that might make templating tools a bit more useful - better than just dropping data into a template.

Most template engines simply wrap PHP (or some other language's) syntax into their own syntax, and maybe they look a little bit cleaner when mixed with HTML. Some may even provide useful features like automatic variable escaping to prevent XSS vulnerabilities. But does this actually significantly reduce the amount of code needed to write some common scenarios, or make it easier to read/manage the code?

His two things revolve some bits of more advanced functionality - automatic table display (given whatever data) and automatic filtering of the data to make of less hassle on the developer/template designer. He even mentions an interesting idea of putting callbacks or validation checks into the actual XML definition tags for forms.

0 comments voice your opinion now!
template engine useful filter table generte attribute callback


blog comments powered by Disqus

Similar Posts

DevShed: Accessing Attributes and Cloning Nodes with the DOM XML Extension in PHP 5

WeberDev.com: PHP 101 (part 11) - Sinfully Simple (SimpleXML)

Slawek Lukasiewicz's Blog: New Features in PHP 5.4 - JSON Extension & header_register_callback

NetTuts.com: Create Instagram Filters With PHP

Justin Silverton\'s Blog: Free RSS to HTML PHP script


Community Events











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


release overview podcast component facebook install symfony2 package application introduction composer opinion language hhvm unittest series framework hack code security

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