Closed NathanHazout closed 8 years ago
My site is generated by Jekyll, which uses Liquid as a templating language. They also use {{ }} to print variables.
{{ }}
When typing
<script id="myTemplate" type="text/x-jsrender"> Name: {{:name}} </script>
{{:name}} gets rendered as an empty string before jsrender can catch it.
{{:name}}
What are my options?
I found my workaround:
{% raw %}{{:name}}{% endraw %}
Ok - but alternatively you can use choose different delimiters, such as <%...%> using $.views.settings.delimiters("<%", "%>").
<%...%>
$.views.settings.delimiters("<%", "%>")
See: https://github.com/BorisMoore/jsrender/issues/258
My site is generated by Jekyll, which uses Liquid as a templating language. They also use
{{ }}
to print variables.When typing
{{:name}}
gets rendered as an empty string before jsrender can catch it.What are my options?