diff --git a/DESCRIPTION b/DESCRIPTION index 0a5cae6d..063dc4a3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: htmltools Type: Package Title: Tools for HTML -Version: 0.5.1.9001 +Version: 0.5.1.9002 Authors@R: c( person("Joe", "Cheng", role = "aut", email = "joe@rstudio.com"), person("Carson", "Sievert", role = c("aut", "cre"), email = "carson@rstudio.com", comment = c(ORCID = "0000-0002-4958-2844")), diff --git a/NAMESPACE b/NAMESPACE index 50a41b45..02e16ec9 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -90,6 +90,7 @@ export(subtractDependencies) export(suppressDependencies) export(surroundSingletons) export(tag) +export(tagAddRenderHook) export(tagAppendAttributes) export(tagAppendChild) export(tagAppendChildren) diff --git a/NEWS.md b/NEWS.md index 2f9a8292..d4e64fe1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,8 @@ * Added `tagQuery(tags)`. A tag query object implements many popular features of jQuery. Similar to jQuery, tag query objects can find internal html using CSS selections. Given a selection (which defaults to the original `tags`), many alterations may be performed before converting the tag query object back to tag objects. (#208) +* Added `tagAddRenderHook()` for delaying modification of a tag object until it is rendered. A list of render-time hooks may also be added via the new `.renderHook` argument added to all `tag()` functions. (#215) + ## Bug Fixes * Closed #197: Fixed rendering of boolean attributes in