posit-dev / py-htmltools

Tools for HTML generation and output
MIT License
19 stars 2 forks source link

Add `wrap_displayhook_handler` #77

Closed wch closed 9 months ago

wch commented 9 months ago

This PR adds a function wrap_displayhook_handler(), which is used in the Tag.__enter__() method, but can also be used in other packages.

The name isn't great -- I'm open to suggestions.