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.72k stars 108 forks source link

Allow dominate to work in async contexts #186

Closed tlonny closed 11 months ago

tlonny commented 11 months ago

Using ContextVars to allow dominate to work within async contexts. Added unit tests to ensure code works as expected.