Skip to content

Commit

Permalink
minor symfony#1985 Fix wrong example for HTML syntax (WebMamba)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Fix wrong example for HTML syntax

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Issues        | Fix symfony#1979
| License       | MIT

Commits
-------

b7c7750 Fix wrong exemple for HTML syntaxt
  • Loading branch information
javiereguiluz committed Jul 15, 2024
2 parents bdd3107 + b7c7750 commit 2df113f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwigComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ prefix the attribute with ``:`` or use the normal ``{{ }}`` syntax:
<twig:Alert message="hello!" user="{{ user.id }}" />

// pass object, array, or anything you imagine
<twig:Alert :foo="['col' => ['foo', 'oof']]" />
<twig:Alert :foo="{col: ['foo', 'oof']}" />

Don't forget that you can mix and match props with attributes that you
want to render on the root element:
Expand Down

0 comments on commit 2df113f

Please sign in to comment.