Description Usage Arguments Functions
Set of functions for helping with building HTML content.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | html_tags(..., env = parent.frame())
html_template(file, ..., text = NULL, deps = NULL, full = "auto")
html_mustache(file, ..., part = NULL, text = NULL, deps = NULL)
html_script(
file,
...,
text = NULL,
type = NULL,
in_head = FALSE,
singleton = FALSE
)
html_dependency(
name,
version,
src,
meta = NULL,
script = NULL,
stylesheet = NULL,
head = NULL,
attachment = NULL,
package = NULL,
all_files = TRUE
)
|
... |
(dta) data elements for the template |
env |
(env) calling environment |
file |
(pth) path to a file containing the template |
text |
(str) as an alternative, supply a character vector |
deps |
(lst) list of additional HTML dependencies |
full |
(flg) whether or not to render a full document |
part |
(lst) partial templates for the whisker renderer |
type |
(str) type attribute of the script tag |
in_head |
(flg) should this script be rendered in the head? |
singleton |
(flg) should this script only appear once? |
name, version, src, meta, script, stylesheet, head, attachment, package, all_files |
(args) passed to |
html_tags
: Build HTML content using tags
html_template
: Render an HTML template using
htmltools::htmlTemplate
; better support for HTML dependencies and
also allows you to put <!-- HEAD_CONTENT -->
to place the dependencies
html_mustache
: Render an HTML template using
whisker::whisker.render
; has good support for partials and other
iterative elements because it is based on {{mustache}}
.
html_script
: Build a script using the whisker syntax
html_dependency
: create a CSS/JS/other dependency
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.