-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Feature Request: Allowing Vue.config.delimiters/unsafeDelimiters for the CLI #100
Comments
Hmm, this is interesting because in 2.0 delimiters will become a component-level option, which means you only need to set it for the root instance that relies on in-DOM templates. Any components processed by The change is intended to make it easier to use 3rd party components, since changing the delimiters globally means you will not be able to compile them correctly. So in the long run, delimiters will have a very narrow use scope and this feature would be unnecessary. |
Well, there's only one line in the templates that actually uses the delimiters (Line 3 in Therefore, I think adding the ability to change delimiters in the template init process would not have a big enough benefit to put in the work to add this feature, in my opinion. |
I agree. Making the 99% of people who don't need custom delimiters make a choice about a feature they may not even know exists probably isn't worth saving 2 minutes for possibly less than 1% of people. |
So, one percent which uses for example Hugo (golang) as template system will not be able to use in easy way Vue 2.0? Very, very bad :/ I'm one of that person and my friends also too :/ |
Hi @dragorwyin you could still use vue.js even without this: vue.js itself allows you to do so, but this is for Vue-Cli which allows you to build Vue components with an easy bash command... anyway soon it will be released probably. Also, you can probably use something like {block of Non template script } |
Hi @zargold. Thanks for info. For now, i'm using delimiters parameter on every vue component and it works also too. :) Nice, that there is possibility to change it by myself.
So, now everything inside div and between ${ } delimeters will works also too :) |
Chris made a very good point and it looks like we're all against it so I'll close this. |
Ok, but how to use Vue together with frameworks that use jinja? {{ x }} |
{% raw %}{{ xxxx }}{% endraw %} |
How to use it with twig {{ }} ? |
Why one would ever use delimiters in Vue while it allows for |
Hi I am using django and I'm sure others have other reasons as well for needing to use different configuration for the delimiters. If there was a way to customize the template will automatically generate the markup with
'[['
']]'
instead of{{
}}
I'd really appreciate it.The text was updated successfully, but these errors were encountered: