-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
I've been trying to get whisker working with LaTeX (which uses a lot of braces)
At first I thought it wouldn't be an issue since there's proper nesting:
> template <-
+
+ 'Hello {{{{name}}}}
+ You have just won ${{value}}!
+
+ '
> text <- whisker.render(template, data)
> cat(text)
Hello
You have just won $10000!
So I thought, fine, I'll just switch the delimeters:
> template <-
+ '
+ {{=<% %>=}}
+ Hello {{<%name%>}}
+ You have just won ${{<%value%>}}!
+
+ '
> text <- whisker.render(template, data)
> cat(text)
Hello ~~~~~~~~~~~~~Chris{{
You have just won $}}10000~~~~~~~~~~~~~!
Which is a bit weird? Apologies if I'm just doing something incorrectly.
aaronwolen, natalia-alvarado, pat-s and dfalbel