Separation of content and code for web (was Re: Python for web?)
Duncan Booth
duncan at NOSPAMrcp.co.uk
Wed Dec 3 06:12:43 EST 2003
Richie Hindle <richie at entrian.com> wrote in
news:mailman.64.1070448833.16879.python-list at python.org:
> [Duncan]
>> For HTML generation could you also take advantage of the fact that
>> attributes are case insensitive and do `element.Class = something`?
>
> Yes, you could, although I believe mixed-case attribute names are not
> strictly valid XHTML.
Indeed, thats why I said HTML. For XHTML all attribute names are lower case
only, so the library *could* simply lowercase any attributes you set.
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list