Confused on Kid

Damjan gdamjan at gmail.com
Tue Oct 25 08:42:21 EDT 2005


> I was
> investigating each subproject individually and could not, for the life
> of me figure out how Kid worked.  I understand that it takes a
> well-formed XML document and transforms it, but I could not figure out
> where it transforms it, or how to transform a document.  They have
> plenty of template examples, but I'm left say, "What do I do with this?"
> I know I can't just pop in it a browser because it has no sort of style
> sheet or anything so it would just render as an XML document.  What do
> you do after you have a kid template?

KID is a pythonic template system. The KID templates are well-formed XML
files but the generated document can be HTML or even plain text (this
should be supported in some of the latest versions).

The KID templates have some simple control structures like 'if' and 'for'
which are modeled to be similar to python. The way it works is you feed the
template some data and it generates HTML documents. The document can have a
reference to a CSS file just like any other HTML page.

-- 
damjan



More information about the Python-list mailing list