You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 hours ago | |
|---|---|---|
| .. | ||
| readme.txt | 2 hours ago | |
| thing1.component.yml | 2 hours ago | |
| thing1.css | 2 hours ago | |
| thing1.js | 2 hours ago | |
| thing1.twig | 2 hours ago | |
readme.txt
Using it
From any Twig template in your theme, use include with the namespaced name. The namespace is your theme's machine name:
twig
{{ include('mytheme:test-card', { heading: 'Hello' }, with_context = false) }}
For slots, use embed:
twig
{% embed 'mytheme:test-card' with { heading: 'Hello' } %}
{% block body %}
<p>Some content here.</p>
{% endblock %}
{% endembed %}