-
Notifications
You must be signed in to change notification settings - Fork 2
An extension to ElementTree inspired by Genshi's ElementFactory
License
waveform80/ElementTreeFactory
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Still gotta write this. For now, I'll assume you know what you're doing and let the code do the talking: $ easy_install ElementTreeFactory Then in your python code: import xml.etree.ElementTree as et from ElementTreeFactory import tag print et.tostring( tag.html( tag.head( tag.link(rel='stylesheet', href='default.css', type_='text/css', media='screen'), tag.title('This is a test document'), ), tag.body( tag.h1('Welcome to ElementTreeFactory'), tag.p('This is a short demonstration of usage of ElementTreeFactory', class_='bodytext'), tag.ul( tag.li('Item %d' % n) for n in range(5) ) ) ) )
About
An extension to ElementTree inspired by Genshi's ElementFactory
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published