File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,17 +365,17 @@ You can even give the block default content. See
365
365
:ref: `Passing HTML to Components via Block <embedded-components >`
366
366
for more info.
367
367
368
- The only caveat when defining the contents inside a component that uses the HTML
369
- syntax is that you cannot import macros using the ``_self `` keyword. You must always
370
- use the full template path:
368
+ The only limitation when defining contents inside a component using the HTML syntax
369
+ is that you cannot import macros using the ``_self `` keyword. You must always use
370
+ the full template path:
371
371
372
372
<twig:Alert>
373
373
{# ❌ this won't work #}
374
374
{% from _self import message_formatter %}
375
375
{# ✅ this works as expected #}
376
376
{% from 'some/path/template.html.twig' import message_formatter %}
377
377
378
- {{ message_formater ('...') }}
378
+ {{ message_formatter ('...') }}
379
379
</twig:Alert>
380
380
381
381
Fetching Services
You can’t perform that action at this time.
0 commit comments