respondTemplateHTML: Respond to HTTP request using HTML interpolated from a...

Description Usage Arguments Examples

Description

Responds to an HTTP request using a given HTML file as well as interpolated content

Usage

1
respondTemplateHTML(templateFile, values)

Arguments

templateFile

the name of the file containing the HTML content

values

a named vector, in which the names are used as the variable names, and the values as the variable values.

Examples

1
2
error <- "Insufficient amount of coffee!"
respondTemplateHTML("../../html/app/error.html",c(message=error))

jweile/cgir documentation built on May 10, 2019, 10:02 a.m.