Re: [ANN] markup.py - 1.2 - an HTML/XML generator
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: [ANN] markup.py - 1.2 - an HTML/XML generator

From: Felipe Almeida Lessa <felipe.lessa@gmail.com>
Date: Tue Apr 04 2006 - 02:04:25 CEST

Em Seg, 2006-04-03 às 17:57 -0500, Robert Kern escreveu:
> Felipe Almeida Lessa wrote:
> > Em Ter, 2006-04-04 às 00:09 +0200, Daniel Nogradi escreveu:
> > [snip]
> >
> >>page.ul.open( klass='mylist' )
> >>page.li( items, klass='myitem' )
> >
> > [/snip]
> >
> > "klass"? Why not "cls" or "class_"?
>
> Why not "klass"?

IMHO, it's strange and ugly. Besides, AFAIK everybody uses "cls" or
"class_", this is the first place I see "klass", so this breaks
consistency, too. But that's just my opinion...

-- 
Felipe.
Received on Sun Apr 30 22:02:34 2006