-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use starcounter-include
in default PartialToStandaloneHtmlProvider
#89
Comments
|
Ping @chrhol |
Ping @chrhol. This is very much needed |
So the tasks are to:
Is that correct, or is the second task optional? I feel a little confused :) And there is no other things that needs to be changed, so although behaviour is changing, it shouldn't break any apps? |
Yes, the beginning might be as easy as changing <template is=""imported-template"" content$=""{{{{model.Html}}}}"" model=""{{{{model}}}}""></template> to <starcounter-include view-model=""{{{{model}}}}""></starcounter-include> @tomalec perhaps you could make a PR to Starcounter that does that? The intent to implement Starcounter/starcounter-include#29 in I tried to check if there are any more challenges, but could not find such. |
But isn't it just maintaining one hack just to hide a problem?
Does it? why? I think currently it doesn't and I would say using |
What do you mean by hack? This is exactly what's is asked in the title of this issue.
Sorry, that was a mental shortcut. What I meant was: If we put |
Solved as suggested above by https://github.com/Starcounter/level1/issues/4223 |
@tomalec will you please write an announcement about this change? https://github.com/Starcounter/Announcements |
Currently default
PartialToStandaloneHtmlProvider
uses justimported-template
to stamp root partial:It results in lack of support for any layout features, like default
declarative-shadow-dom
(eventually could be fixed by https://github.com/Starcounter/RebelsLounge/issues/78) and explicit Shadow DOM compositions (ones fromStarcounter.HTMLComposition
given by CompositionProvider).That's why I would suggest to
starcounter-include
on root level:Alternatively we could
declarative-shadow-dom
as independent custom element (https://github.com/Starcounter/RebelsLounge/issues/78 once it's done) . Then default ones (provided by app devs - from app code) should work regardless of the container. Then the explicit custom ones, given by the composer/editor/designer app/person (ones from the database) could be delivered also using<declarative-shadow-dom>
merged by HTML merger.However, this would require:
<d-s-d>
as independent CE which may take some time and is at risk due to lack ofis=""
support in browsers and other potential lifecycle problems,<d-s-d>
to overwrite instead of appending Shadow DOM<starcounter-include>
/<juicy-composition>
MaterPage.html
- which we already found confusing./cc @warpech @Mackiovello
The text was updated successfully, but these errors were encountered: