{"repo":"Knio/dominate","free":true,"listed":false,"github":"https://github.com/Knio/dominate","clone":"git clone https://github.com/Knio/dominate.git","description":"Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.","language":"Python","stars":1826,"topics":["python","html","html-document","html-element","python-library"],"license":"LGPL-3.0","category":"dev-tools","readme_excerpt":"Dominate ======== Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminates the need to learn another template language, and lets you take advantage of the more powerful features of Python. Python: Output: Installation ------------ The recommended way to install dominate is with pip : pip install dominate Developed By ------------ Tom Flanagan - Jake Wharton - Brad Janke Git repository located at github.com/Knio/dominate Examples ======== All examples assume you have imported the appropriate tags or entire tag set: Hello, World! ------------- The most basic feature of dominate exposes a class for each HTML element, where the constructor accepts child elements, text, or keyword attributes. dominate nodes return their HTML representation from the str , unicode , and render() methods. Attributes ---------- Dominate can also use keyword arguments to append attributes onto your tags. Most of the attributes are a direct copy from the HTML spec with a few variations. For attributes class and for which conflict with Python's reserved keywords, you can use the following aliases: class for ------- ----- class for cls fr className htmlFor class name html for Use data for custom HTML5 data attributes. You can also modify the attributes of tags through a dictionary-like interface: Complex Structures ------------------ Through the use of the += operator and the .add()","default_branch":null,"files":null,"tree":[],"storefront":"/r/Knio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Knio/dominate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}