whisker (version 0.3-2)

whisker.render: 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

Run this code
# NOT RUN {
template <- "Hello {{place}}!"
place <- "World"

whisker.render(template)
# }

Run the code above in your browser using DataCamp Workspace