vue django delimiters
In Django, to change the delimiters for Vue templates, follow these steps:
- In your Vue component file, add the
delimiters
option to change the default delimiters:
new Vue({
delimiters: ['${', '}'],
// other options and code
});
- In your Django template, use the custom delimiters for the Vue component:
{% verbatim %}
<div>${ variable }</div>
{% endverbatim %}