Skip to content

Commit 1ca562f

Browse files
committed
-
1 parent acbe0d0 commit 1ca562f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,17 +365,17 @@ You can even give the block default content. See
365365
:ref:`Passing HTML to Components via Block <embedded-components>`
366366
for more info.
367367

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:
371371

372372
<twig:Alert>
373373
{# ❌ this won't work #}
374374
{% from _self import message_formatter %}
375375
{# ✅ this works as expected #}
376376
{% from 'some/path/template.html.twig' import message_formatter %}
377377

378-
{{ message_formater('...') }}
378+
{{ message_formatter('...') }}
379379
</twig:Alert>
380380

381381
Fetching Services

0 commit comments

Comments
 (0)