-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facility to change template mustaches in Vue3, delimiters
no longer works
#1679
Comments
I'm unable to get this to work: console.log(Vue.version) //returns "3.0.0-rc.5"
var app = Vue.createApp({
data() {
return {counter: 0}
}
})
app.config.delimiters = ['{%', '%}']
app.mount("#app") Am I doing anything wrong? |
@advanderveer I believe you need to put the setting on the component rather than the application: Vue.createApp({
delimiters: ['{%', '%}']
}) |
I have the same problem. |
See https://v3.vuejs.org/api/options-misc.html#delimiters for updated instructions |
I have the same problem. |
TLDR: It seems since Vue 3.1 old delimiter is deprecated and I was not able to have this option inlined in the source. My goal is to use Vue 3 with Flask. I've set up I copy my answer also on S.O. : How to change delimiters in Vue.js? Got some good rowing since 2 days. :)) I've read below again and again
After that I read on Stackoverflow
Before I (re)installed below those Vue 3 package only if I've done mistake by copy paste from stackoverflow. I assume they are yet installed.
And I installed for Vue 3:
I created
With this
|
Worked perfectly, thanks a lot |
Awesome, thank you so much, works good with vue 3 cli |
I am not using CLI. I am using Vue standalone:
|
Hi @gregg-cbs!
|
Thanks @jiuneypachevitch I had assumed that setting it on |
What problem does this feature solve?
Vue2 had the option
delimiters
to change mustache symbols for templating, but this option appears to have changed in Vue3. The only mention I can find is in RFC draft #35. This feature is needed to integrate with large server-side codebases where it is impractical to change mustaches on existing SS templates. It has been removed in the Vue3 guide and isn't mentioned in the migration guide.What does the proposed API look like?
as Vue2 or alternative
The text was updated successfully, but these errors were encountered: