{ "info": { "author": "Yixian Du", "author_email": "duyixian1234@qq.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "\nhtml-dsl\n--------\nA HTML-DSL for Python\n\nUSE\n---\n\n\n>>> from html_dsl.elements import BaseHtmlElement, HTML, BODY, H1, P, DIV, SPAN\n>>> html = HTML[\n BODY[\n H1[\"Title\"],\n P(color=\"yellow\")[\n \"Hello, World.\", SPAN[\"something in span\"], \"Out of the span\"\n ],\n P[\"This is the second paragraph.\"],\n DIV[\n DIV(_class=\"row\")[\n DIV(_class=\"column\", color=\"red\")[\"col1\"],\n DIV(_class=\"column\", color=\"blue\")[\"col2\"],\n DIV(_class=\"column\", color=\"green\")[\"col3\"],\n ]\n ],\n ]\n ]\n>>> print(html)\n\n
\n\n Hello, World.\n \n something in span\n \n Out of the span\n
\n\n This is the second paragraph.\n
\n