renderTags: Render tags into HTML

Description Usage Arguments Details Value

View source: R/tags.R

Description

Renders tags (and objects that can be converted into tags using as.tags()) into HTML. (Generally intended to be called from web framework libraries, not directly by most users–see print.html() for higher level rendering.)

Usage

1
2
3
renderTags(x, singletons = character(0), indent = 0)

doRenderTags(x, indent = 0)

Arguments

x

Tag object(s) to render

singletons

A list of singleton signatures to consider already rendered; any matching singletons will be dropped instead of rendered. (This is useful (only?) for incremental rendering.)

indent

Initial indent level, or FALSE if no indentation should be used.

Details

doRenderTags is intended for very low-level use; it ignores render hooks, singletons, head, and dependency handling, and simply renders the given tag objects as HTML. Please use renderTags() if x has not already handled its dependencies and render hooks.

Value

renderTags returns a list with the following variables:

doRenderTags returns a simple HTML() string.


htmltools documentation built on Aug. 25, 2021, 5:07 p.m.