473,396 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Confused on Kid

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 ==----
Oct 10 '05 #1
2 1238
Brandon K wrote:
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
rk***@ucsd.edu

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

Oct 10 '05 #2
> 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
Oct 25 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Haoyu Zhang | last post by:
Dear Friends, Python assignment is a reference assignment. However, I really can't explain the difference in the following example. When the object is a list, the assignment seems to be a...
2
by: Brian Roberts | last post by:
I'm confused about the use of hasattr/getattr, or possibly namespaces. I know how to do this: class UnderstandThis(object): def do_foo(self): pass def do_bar(self): pass def doit(self, cmd):...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
6
by: ree32 | last post by:
I am a bit confused with capabilities of XML. I have an XML document with information on images(photos). Is there way to use XSL/XSLT to create a page that will display the images as gallery. ...
5
by: Jeff Amiel | last post by:
Yes, I've read the FAQ's... I'm still confused. I'm trying to help out a buddy to extract data from an .mdb file that has special 'permissions' on it. If I try to open it with the standard...
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
1
by: Benny Ng | last post by:
Hi,All, Export Method: ------------------------------------------------------------------------- strFileNameExport = "Results" Response.Clear() Response.Buffer = True...
2
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP...
11
by: timmu | last post by:
Someone asked me a question about integer division and printf yesterday, I tell him he should do a casting to float/double before you do any interger division. But he doesn't think so, so I try...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.