Chapter 13.1. Creating Dynamic Templates with Kid

Python has been home to any number of HTML templating schemes. Some have been copies of other models:

PSP --> ASP/JSP

Velocity --> Velocity (Java)

Mighty --> Mason (Perl)

Others were developed in Python first:

DTML

Cheetah

ZPT

STAN

Even though Kid might be new to the block, it isn’t unaware of the past, and it isn’t afraid to borrow from other template systems.

With that said, Kid was not designed to be just another text-based HTML template system. It’s designed to make creation of XML documents easier.

Some of its predecessors such as PSP and Cheetah are more like string templates than XML template systems, so they can’t provide any guarantee that they’ll produce well-formed XML.

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.