html_build: HTML Building Utilities

Description Usage Arguments Functions

Description

Set of functions for helping with building HTML content.

Usage

 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
)

Arguments

...

(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 htmltools::htmlDependency

Functions


tjpalanca/webtools documentation built on Dec. 23, 2021, 11 a.m.