[2.0.0-alpha1] Update Render Element and Twig extension to SDC

Created on 22 October 2023, about 1 year ago
Updated 29 January 2024, 11 months ago

Render element

We need to extend SDC render element if:

Specs: https://docs.google.com/document/d/1-GaMK1Qk-h0hmB7GtAcnqPTuCOGMaxeRguop...

component() Twig function

SDC is promoting the use of Twig fucntions and tags for "calling" a component template.

This is not good enough for UI Patterns because:

  • No variant
  • When targeting a template instead of a component, include function is a bad practice
  • No passing through the render element
  • When using include, forgetting β€œwith_context = false” can be harmful
  • When using embed, the syntax is confusing

We need a direct call to the component render element already provided by SDC.

This is replacing pattern() function from UI Patterns 2.x

See: https://docs.google.com/document/d/1-GaMK1Qk-h0hmB7GtAcnqPTuCOGMaxeRguop...

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024