{ "info": { "author": "UNKNOWN", "author_email": "timothy.crosley@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries" ], "description": "|thedom|\n========\n\n|PyPI version| |PyPi downloads| |Build Status| |License| |Bitdeli Badge|\n\nthedom is a collection of python objects that enable developers to\ngenerate and interact with web apps server side. It encourages object\noriented website development, and code reuse by seperating each DOM\nelement into its own object, and then allowing inheritance and child\nelements to come together to form new elements not defined in the\nstandard DOM.\n\nwrite this:\n\n::\n\n from thedom import Layout, Document, Buttons\n\n page = Document.Document()\n layout = page.addChildElement(Layout.Center()).addChildElement(Layout.Horizontal())\n layout += Buttons.Button(text=\"Use thedom.\", **{'class':'MainAction'})\n layout += Buttons.Button(text=\"Enjoy writing less code.\", **{'class':'DeleteAction'})\n layout += Buttons.Button(text=\"100% Python.\")\n\n print page.toHTML(formatted=True)\n\nget this:\n\n::\n\n \n \n
\n