edwindj / whisker

{{mustache}} for R
https://mustache.github.io
213 stars 19 forks source link

'>' in replacement #7

Closed michelk closed 11 years ago

michelk commented 11 years ago

How can I get that work?

R> dd = list(a = '>> blim')
R> tt = "{{a}} blam blum"
R> whisker.render(tt,dd)
### [1] ">> blim blam blum"

I want

">> blim blam blum"

Thanks, Michel

edwindj commented 11 years ago

Dear Michel,

Responding from my holiday :-)

Since whisker and mustache generate html, special html characters are escaped by default. You can use triple { to disable html escaping.

Thus '{{{a}}} blam blum' should do the trick.

Best,

Edwin Op 24 jul. 2013 12:58 schreef "Michel Kuhlmann" notifications@github.com het volgende:

How can I get that work?

R> dd = list(a = '>> blim') R> tt = "{{a}} blam blum" R> whisker.render(tt,dd)

[1] ">> blim blam blum"

I want

">> blim blam blum"

Thanks, Michel

— Reply to this email directly or view it on GitHubhttps://github.com/edwindj/whisker/issues/7 .

michelk commented 11 years ago

Hi Edwin, ok, thanks a lot.