kainjow / Mustache

Mustache text templates for modern C++
Boost Software License 1.0
357 stars 49 forks source link

Partials don't respect overridden delimiters #20

Closed KitsuneRal closed 6 years ago

KitsuneRal commented 6 years ago

Case in point: using the following template:

{{=[+ +]=}}[+>partial+]

and assuming I have partial defined as

{{^nothing}}1{{/nothing}}[+^nothing+]2[+/nothing+]

I see

1[+^nothing+]2[+/nothing+]

rather than

{{^nothing}}1{{/nothing}}2

I wonder if it's a bug or a feature. The original Mustache manual is silent on this case.

kainjow commented 6 years ago

Looks like this covers it: https://github.com/mustache/spec/blob/master/specs/delimiters.yml#L73

KitsuneRal commented 6 years ago

The author apparently didn't try using Mustache with LaTeX and the likes... Thanks for the clarification anyway.