Proposal for new operators to python that add syntactic sugar for hierarcical data.

glomde tbrkic at yahoo.com
Thu May 18 06:14:42 EDT 2006


> Here's a nice stan example, taken from Kieran Holland's tutorial
> http://www.kieranholland.com/code/documentation/nevow-stan/

I took a quick look and it looks nice as long as your page is static.
But I couldnt
se how you could mix in python code seamlessy when creating your tree.

But I might be wrong if you could write:

tags.body[
    for i in range(10):
        tags.h1[ "Heading %s." %(i) ],
    tags.p[ "This text is inside a paragraph tag." ],
   ]

I think that this is close enough to my syntax. But I dont think you
can do it.




More information about the Python-list mailing list