Issue #3196994: Support new vue style slot syntax
Compare changes
+ 45
− 16
The Custom Elements module renders entities into custom elements markup that can be easily picked up for client-side
rendering, by various libraries. Moreover it provides API for other modules to customize the generated custom elements
The module renders the data of all visible fields either as attribute to the custom element tag, or as nested tag with a
slot attribute. Custom element attributes may be picked up as property during client-side rendering.
Slots are a useful way for content distribution in [Vue.js - thus the rendered slots can be used directly by the Vue.js
[slot implementation](https://vuejs.org/v2/guide/components.html#Content-Distribution-with-Slots). But the concept can
be used with other client-side libraries as well, e.g. see https://github.com/dschnare/react-slot for a React based
The module takes over render for all view-modes that are prefixed with `custom_elements` - thus to render content
entity as custom elements you just need to introduce custom view mode with `custom_elements` prefix. Every entity render