Logicless templating
whisker.render(template, data = parent.frame(), partials = list(), debug = FALSE)
character with template text
character
named list or environment with variables that will be used during rendering
list
environment
named list with partial templates, will be used during template construction
Used for debugging purposes, likely to disappear
character with rendered template
# NOT RUN { template <- "Hello {{place}}!" place <- "World" whisker.render(template) # }
Run the code above in your browser using DataCamp Workspace