Description Usage Arguments Value Examples
Respond with a rendered template
1 | templateView(templateFile, data)
|
templateFile |
Filepath of a whisker template |
data |
named list or environment with variables that will be used during rendering |
A response object with as body the rendered template.
1 2 | templateView(system.file("static", "index.html", package = "mattR"),
list(title = "foo", text = "bar"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.