Description Usage Arguments Value See Also Examples
View source: R/whisker_check.R
Check a template for all variables
1 | whisker_check(template, data)
|
template |
character; mustache template |
data |
named list or environment used for template construction
|
Returns TRUE
if all template names are available. False otherwise.
1 2 3 | tmpl <- "Hello {{Who}}"
whisker_check( tmpl, list(Who = "World" )) # TRUE
whisker_check( tmpl, list(Person = "World" )) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.