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:
parent
88ede0c696
commit
855857217f
@ -35,5 +35,6 @@ const app = new Vue({
|
||||
const modal = modalOpen.getAttribute("data-modal");
|
||||
this.modals[modal] = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
delimiters: ['!{', '}']
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user