Last data update: 2014.03.03
|
R: Logicless templating
whisker.render | R Documentation |
Logicless templating
Description
Logicless templating
Usage
whisker.render(template, data = parent.frame(),
partials = list(), debug = FALSE)
Arguments
template |
character with template text
|
data |
named list or environment with
variables that will be used during rendering
|
partials |
named list with partial templates,
will be used during template construction
|
debug |
Used for debugging purposes, likely to
disappear
|
Value
character with rendered template
Examples
template <- "Hello {{place}}!"
place <- "World"
whisker.render(template)
Results
|