In Mustache, it was possible to set custom delimiters. Example (source):
{{ default_tags }}
{{=<% %>=}}
<% erb_style_tags %>
<%={{ }}=%>
{{ default_tags_again }}
Explanation:
- On the first and last line the default delimiters
{{ and }} are used.
- Line 2 indicates that
<% and %> should be used instead of {{ and }}.
- Line 3 uses the custom delimiters
- Line 4 indicates that
{{ and }} should be set instead of <% and %>.
This do not seems to work with handlebars. This stackoverflow question propose an alternative to escape { and } in handlebar: {{"{"}} and {{"}"}}.
Example in swagger templates (example from /modules/swagger-codegen/src/main/htmlDocs2/sample_js.mustache).
Mustache:
...some text.. {{=< >=}}{<&dataType>}<={{ }}=> .. and more .......
But this does'nt work with handlebar java:
...some text.. {{"{"}}{{&dataType}}{{"}"}} .. and more .......
In Mustache, it was possible to set custom delimiters. Example (source):
Explanation:
{{and}}are used.<%and%>should be used instead of{{and}}.{{and}}should be set instead of<%and%>.This do not seems to work with handlebars. This stackoverflow question propose an alternative to escape
{and}in handlebar:{{"{"}}and{{"}"}}.Example in swagger templates (example from
/modules/swagger-codegen/src/main/htmlDocs2/sample_js.mustache).Mustache:
But this does'nt work with handlebar java: