htag: HTML Builder functions

Description Examples

Description

HTML builder functions. Similar in purpose to shiny::tags, but with auto-complete of attribute names as part of the function call. Also based upon HTMLElement at its core (rather than a list, as in shiny)

htag is a dreadful portmanteau of html and tag.

The simpler name of tag was rejected to avoid a name clash with the shiny package.

Wrapper functions (around HTMLElement$new()) to assist in building HTML documents

Examples

1
2
3
4
5
## Not run: 
htag$a(href = 'hello', "greeting")
# <a href="hello">greeting</a>

## End(Not run)

coolbutuseless/minihtml documentation built on March 11, 2020, 5:22 p.m.