-
Notifications
You must be signed in to change notification settings - Fork 18
Problem with {{, even when changing delimiters #20
Copy link
Copy link
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.
Reactions are currently unavailable