Skip to content

htmltools 0.2.0

Compare
Choose a tag to compare
@wch wch released this 03 Apr 19:20
· 58 commits to main since this release

New features

  • Added support for URL based HTMLDependency objects. (#53)

  • Tag functions now have a boolean parameter _add_ws, which determines if the tag should be surrounded by whitespace. Tags which are normally block elements (like div) have this default to True, and tags which are normally inline elements (like span) have this default to False. This makes it possible to create HTML where neighboring elements have no whitespace between them. For example, span(span("a"), span("b")) will now yield <span><span>a</span><span>b</span></span>. (#54)