-
Notifications
You must be signed in to change notification settings - Fork 915
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
"components want vary templates" or what about is few templates into .vue file with hot reloading? #1122
Comments
Hi, maybe we can try another way to resolve this problem. I wrote a pre-loader for your issue. See here. Hope this helps. |
@HaoyCn it's works! good job! |
My pleasure. :P |
@HaoyCn what do you think, vue-loader must have it? Or should I close the issue? |
@patriciussanctus I don't think that vue-loader must contain this feature cuz we can already implement it using the proposed apis like |
What problem does this feature solve?
#418
let's imagine an abstract situation when:
We can't use
include ./tab-1.pug
, because process editing of file unbearable without hot reloading.We can't use components system, because between original parent and needed child may be n-count any ancestors. And we will need use big deep paths as
$parent.$parent.$parent
or excessprops
.A system in which 10 elements within themselves have similar variables and functions looks cumbersome.
simple example:
End user experience concludes in situations, when components needs in interchange of templates which has convention of using functionality.
I suggest the using "the template in template" with supporting props
src
... andlang
(if it's realistic).It's will be perfect for components, which have default theme, can change theme and ready for customization.
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: