Closed nbest937 closed 10 years ago
Thanks for trying out whisker, the following example should work.
dat <- head(InsectSprays)
dat <- unname(rowSplit(dat))
template <-
"{{#dat}}
count: {{count}}, spray: {{spray}}\n
{{/dat}}"
whisker.render(template)
Seems you found a small bug in rowSplit (the unname will be part of rowSplit in the next release).
Do you happen to have a simple example to illustrate how to use rowSplit()? It would be a big help. Dank u vriendelijk!