adobe-gw2023-project-bricks / helix-website-wc

aem.live site on Web Components
https://bricks.albertodicagno.com
Apache License 2.0
0 stars 0 forks source link

Codeless bricks #47

Closed bdelacretaz closed 6 months ago

bdelacretaz commented 7 months ago

Simple bricks might not need JS code, something like this in the HTML templates:

<div class="image-wrapper" data-aem-selector="picture"></div>

can mean "append all nodes matching the 'picture' CSS selector to this element.

Initially I think we'll still need an empty JS class in the brick folder, and that can also be useful it small bits of additional code are required.