html 0.4.0 released

Jürgen Urner jUrner at arcor.de
Wed Sep 20 21:18:29 CEST 2006


Just released the 0.4.0 version of my html package.

What is html? Bet you know. But this module lets
you parse and construct html content without
templating languages. Goal was to wrap tags
in the simplest way python allows to.


Sample code:

f = (
    HtmlFile()
    (
        Doctype(),
        Html()
        (
            Head(),
            Body()("Hello World!")
        )
    )
)
f.save(''myFile.html")

...or for spaghetti code lovers:
print HtmlFile()(Doctype(), Html()(Head(), Body()("Hello
World!"))).save()


Get the package from here:
http://home.arcor.de/jurner/python/



More information about the Python-announce-list mailing list