Confused on Kid

B

Brandon K

Hey, so I heard about the TurboGears posting and decided to investigate.
I watched some of their video on building a wiki in 20 minutes and
was totally blown away because I'm used to python...straight python, not
melding together 4 different APIs into one to blah blah. ANYWAY. 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?


----== Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups ==----
Get Anonymous, Uncensored, Access to West and East Coast Server Farms!
----== Highest Retention and Completion Rates! HTTP://WWW.NEWSGROUPS.COM ==----
 
R

Robert Kern

Brandon said:
Hey, so I heard about the TurboGears posting and decided to investigate.
I watched some of their video on building a wiki in 20 minutes and
was totally blown away because I'm used to python...straight python, not
melding together 4 different APIs into one to blah blah. ANYWAY. 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?

Did you read the documentation?

http://kid.lesscode.org/guide.html

--
Robert Kern
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 
D

Damjan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,025
Latest member
Rigor4

Latest Threads

Top