Skip to content

Commit

Permalink
[TwigComponent] Adding note about min version of Twig for spread oper…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
weaverryan committed Aug 7, 2023
1 parent 26a72bb commit 8054617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TwigComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,8 @@ normal ``{{ }}`` syntax:
// and pass object, or table, or anything you imagine
<twig:Alert :foo="['col' => ['foo', 'oof']]" />

To forward attributes to another component, use `{{...}}` spread operator syntax:
To forward attributes to another component, use `{{...}}` spread operator syntax.
This requires Twig 3.7.0 or higher:

.. code-block:: html+twig

Expand Down

0 comments on commit 8054617

Please sign in to comment.