Allowing specification of delimiters
ramnathv opened this issue · 4 comments
I would like to use mustache templates with latex. But the trouble is that latex makes extensive use of {
and }
which interferes with mustache syntax. I read in the mustache documentation that it is possible to customize delimiters. Does whisker
already support it, or can it be made to support it?
Whisker supports it partially:
- Setting the delimiters in the beginning of the template works.
- Changing the delimiters back and forth in the document doesn't work
(see for example the tests in [https://github.com/edwindj/whisker/tree/master/inst/tests]) most work of "testdelimiters.R", except for test 3 to 7.)
That is terrific. Is there a way to redefine the triple mustache as well?
Well strictly speaking no, but there is an alternative syntax for triple mustache
In stead of triple mustache '{{{name}}}' you can use '{{&name}}' which still works when changing the delimiters
Awesome. Thanks!