Knio / 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 eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
GNU Lesser General Public License v3.0
1.69k stars 109 forks source link

Add directives for class, style, Alpine.js, HTMX #203

Open nikalexis opened 2 weeks ago

nikalexis commented 2 weeks ago

Hi, thank you for providing this awesome library!

I have enriched the library, so any developer can use some helpers for building common HTML attributes (class, style as a start), but also some powerful javascript libraries that are based on setting special HTML attributes (Alpine.js, HTMX).

You can have a look in the updated README.md / Using directives for code examples using the new features.

In case you think this is a good idea, I will be glad to discuss any guidelines you have in order to accept it in your master (upstream) branch / release cycle.