Set custom delimiters for Vue

Normally, in Vue.js, you could use `{{ variable }}` to render the value
of some variable. In our setup however, Jinja expects to handle the
`{{}}` as a template. This change allows us to use `!{ variable }` to
render the value in our Vue templates.
This commit is contained in:
Patrick Smith 2018-08-10 11:20:56 -04:00
parent 88ede0c696
commit 855857217f

View File

@ -35,5 +35,6 @@ const app = new Vue({
const modal = modalOpen.getAttribute("data-modal"); const modal = modalOpen.getAttribute("data-modal");
this.modals[modal] = true; this.modals[modal] = true;
} }
} },
delimiters: ['!{', '}']
}) })