-
Notifications
You must be signed in to change notification settings - Fork 387
Description
Do template expressions need to be able to transform data? In what ways?
yes, the transform into data DOM, which later transformed into HTML DOM. XSLT at its primitive side.
The data can be transfered into variables, passed to HTML via attributes, tags, and text via selectors. The XPath selector is already there, no need to invent the wheel.
What data can be used?
- DCE attributes
data-attributes- DCE instace payload( HTML within custom tag )
- data slices - filled by
<slice>tag/attribute and bound to value of child element by event - template variables - temporary variables during the rendering i.e.
<xsl:variable>
system data/API
Is available via value of special custom elements, poyfills: http-request | local-storage | location-element
The scope of system API should be aware of encapsulation and guarded to the scope of embeddable application, similar to the page but implemented as DCE. Such embeddable application would have all props and API of web app. Accessing those via special custom elements would account the scoping by app root.
Other working examples: attributes | data slices/events | diary - slice, value, select relations
