Logicless templating
● Data Source:
CranContrib
● Keywords:
● Alias: whisker.render
●
0 images
|
whisker.escape
(Package: whisker) :
escape basic HTML characters
This method is called for normal mustache keys
● Data Source:
CranContrib
● Keywords:
● Alias: whisker.escape
●
0 images
|
Whisker is a templating engine for R conforming to the Mustache specification. Mustache is a logicless templating language, meaning that no programming source code can be used in your templates. This may seem very limited, but Mustache is nonetheless powerful and has the advantage of being able to be used unaltered in many programming languages. For example it make it very easy to write a web application in R using Mustache templates and where the browser can template using javascript's "Mustache.js"
● Data Source:
CranContrib
● Keywords:
● Alias: whisker-package
●
0 images
|
tag2delim
(Package: whisker) :
change a delimiter tag into two escaped characters
change a delimiter tag into two escaped characters
● Data Source:
CranContrib
● Keywords: internal
● Alias: tag2delim
●
0 images
|
rxsplit
(Package: whisker) :
Split a character in three parts
It differs from strsplit in that it only splits on the first occurrence and returns all parts of the string given
● Data Source:
CranContrib
● Keywords: internal
● Alias: rxsplit
●
0 images
|
rowSplit
(Package: whisker) :
Split a data.frame or matrix into rows
Utility function for splitting a data.frame into rows. In a whisker template it can be useful to iterate over the rows of a data.frame or matrix. For example rendering a table in HTML.
● Data Source:
CranContrib
● Keywords:
● Alias: rowSplit
●
0 images
|
iteratelist
(Package: whisker) :
Create an iteration list from a R object
In some case it is useful to iterate over a named list or vector iteratelist will create a new unnamed list with name value members: each item will be a list where 'name' is the corresponding name and 'value' is the original value in list x .
● Data Source:
CranContrib
● Keywords:
● Alias: iteratelist
●
0 images
|
isFalsey
(Package: whisker) :
Is a value falsey according to Mustache specifications?
This function is used to test a value before rendering
● Data Source:
CranContrib
● Keywords: internal
● Alias: isFalsey
●
0 images
|
delimit
(Package: whisker) :
enclose a key with delimiters
enclose a key with delimiters
● Data Source:
CranContrib
● Keywords: internal
● Alias: delimit
●
0 images
|