advertisement

O'Reilly Tags

We're experimenting with a folksonomy based on tag data provided by del.icio.us. Follow development in this blog post.


Python-Powered Templates with Cheetah (9 tags)
It's true; XSLT isn't the be-all, end-all of templating and transformation systems. If you use Python, consider instead Cheetah, a template engine based on Python. Andrew Glover demonstrates its simplicity and power for producing text in all kinds of formats.

Advanced HTML::Template: Widgets (8 tags)
HTML::Template is a templating module for HTML made powerful by its simplicity. Its minimal set of operations enforces a strict separation between presentation and logic. However, sometimes that minimalism makes templates unwieldy. Philipp Janert demonstrates how to reuse templates smaller than an entire page--and how this simplifies your applications.

Reverse Callback Templating (7 tags)
Many programmers know of the two main systems of templating. One embeds actual source code into the template. The other provides a mini language with loops, conditionals, and other control structures. There is a third way -- a reverse callback system. James Robson explains this best-of-both-worlds approach by demonstrating Perl's Template::Recall module.

The Dynamic Duo of PEAR::DB and Smarty (4 tags)
It can be difficult to separate business logic and formatting in PHP. There are several good templating solutions, though, including the popular and powerful Smarty. Joao Prado Maia demonstrates how to use Smarty with a database back end through the PEAR::DB library.

Advanced HTML::Template: Filters (3 tags)
HTML::Template is a templating module for HTML made powerful by its simplicity. Its minimal set of operations enforces a strict separation between presentation and logic. However, sometimes that minimalism makes templates unwieldy. Philipp Janert demonstrates how filters help you regain simplicity and separation of concerns.