htmltools 0.5.1
-
Tag
objects can now be used as context managers, as inwith tags.div():
. When used this way, then inside thewith
block,sys.displayhook
is replaced with a function which adds items as children to theTag
. This is meant to be used with Shiny Express, Quarto, or Jupyter. (#76) -
Added a function
wrap_displayhook_handler()
. This alliows displayhooks to delegate their logic for handling various kinds of objects (likeTag
objects and objects with a_repr_html()
) to this function. (#77)