Tomek Wytrębowicz
<starcounter-include/>
Given with the partial's HTML code
Migrate old-school code
DocumentFragment with any HTML+CSS structure and <slot>s
tools
SELECT * FROM HTMLComposition WHERE Key = "/People/Person.html&/Images/Concept.html"

<slot name="App/el"> to distribute an element
Stacounter.HTMLCompositioncurlINSERT INTO ...new Starcounter.HTMLCompositionfor humans
slot elements created automatically(developement planned for Jan/Feb 2017)
TextNodes on root level (use <span>)<content select='[slot="App/name"]'>
<slot name="App/name">
| ✓ |
by Google team, supports V0, V1 in development. Supports all browsers below | |
Chrome |
✓ | V0 & V1 |
Opera |
✓ | V0 & V1 |
| • | ⚑ behind the flag dom.webcomponents.enabled |
|
| ✓ | V1 (Safari 10) | |
| • | "Priority: High — We intend to begin development soon." |
(Sep 2016)
| Code editor w/ dev tools integration |
in Launcher & Layout App |
as a custom element <starcounter-layout-html-editor> |
|
| WYSIWYG editor | Planned for this month, Dec 2016 |
| AI generated layouts | Prototype planned for Feb 2017 |
Tomek Wytrębowicz
tomalec
@tomalecpl
Articles:
Layout compositions for HTML partials - starcounter.io/layout-compositions-html-partials/
Unobtrusive styling and composing 3rd party HTML content - starcounter.io/unobtrusive-styling-composing-3rd-party-html-content/
HTML partials/includes WebComponents-way - starcounter.io/html-partialsincludes-webcomponents-way/
This & other talks: