Closed ElMassimo closed 2 years ago
We didn't find any information for the current pull request with the commit 5229eee05f1063963c71144ffe79adbc757299e8. You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.
Check the Nx Cloud Github Integration documentation for more information.
Sent with π from NxCloud.
Dropping this idea for now, see https://github.com/ElMassimo/iles/issues/106#issuecomment-1083269826.
Description π
This pull request enables Vue pages to provide named slots to layouts using the standard syntax.
Layouts have had this ability since https://github.com/ElMassimo/iles/pull/3.
Notes βοΈ
This feature is syntax sugar, as this is already possible by using layouts explicitly as components in pages:
Implementation 1
Rewriting page templates to be wrapped with layouts before Vue compiles them.
Layout
Page
would be transformed by the plugin to:
Downsides
useDocuments
:valid-v-slot
lint rule:'v-slot' directive must be owned by a custom element, but 'template' is not
Alternatives
Renderless components
This could be implemented using
provide/inject
orTeleport
.The problem is that both of these options don't play nicely with SSR, given reactivity is disabled.
Layout
Page