- Issue created by @emacoti
- Status changed to Fixed
about 1 year ago 8:45pm 27 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Making this via an issue so the improvement is more visible. This allows to render components in twig templates and pass any required configuration.
Example:
In your twig template you can do
{{ example_component({ 'title': 'Example Component'|t }) }}
<div>
<p>{% trans %}Calling example component 2{% endtrans%}</p>
{{ example_component_2({ 'title': 'Example Component 2'|t }) }}
</div>
So just rendering it via the component name and passing configuration as an object.
Fixed
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.