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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for detecting islands in pug templates #83
Comments
Stackblitz runs dev mode by default, have to manually stop and run |
Hi again Hardi! Currently, hydration directives are detected by traversing the template nodes obtained using For Pug templates, I'm open to adding support for It's likely that it will require using the Let me know if you are interested in exploring this, contributions are welcome! |
client:*
directives cannot be used with Pug templating language.
I wish I could be of any help there, but parsing and compilation are so far outside my comfort zone 馃槄 Would it be possible to add the entire Island component manually, instead of using the attribute? |
It's ok, just checking. I might be able to take a look over the next couple of weeks.
Possible, yes, but very cumbersome (to a point where using an html template might end up being more convenient, ha) In the meantime, a workaround if you want to keep using pug, is to create a dummy component with a normal template, and apply the hydration tags passing any additional props: // src/components/LazyGrowButton.vue
<template>
<GrowButton client:load v-bind="$attrs"/>
</template> You can then use |
iles
andvite
.Description 馃摉
client:*
directives cannot be used with Pug templating language.Reproduction 馃悶
https://stackblitz.com/edit/iles-dy6fcn?file=src/pages/index.vue
None of the GrowButtons are recognized as islands.
The text was updated successfully, but these errors were encountered: