File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 65
65
no_php_open_tag_in_code_block_php_directive : ~
66
66
# no_php_prefix_before_bin_console: ~
67
67
# no_php_prefix_before_composer: ~
68
- no_space_before_self_xml_closing_tag : ~
68
+ # no_space_before_self_xml_closing_tag: ~
69
69
only_backslashes_in_namespace_in_php_code_block : ~
70
70
only_backslashes_in_use_statements_in_php_code_block : ~
71
71
ordered_use_statements : ~
Original file line number Diff line number Diff line change @@ -855,7 +855,7 @@ Twig Components come with an HTML-like syntax to ease the readability of your te
855
855
856
856
<twig:Alert></twig:Alert>
857
857
// or use a self-closing tag
858
- <twig:Alert/>
858
+ <twig:Alert />
859
859
860
860
Passing Props as HTML Attributes
861
861
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -882,13 +882,13 @@ normal ``{{ }}`` syntax:
882
882
883
883
.. code-block :: html+twig
884
884
885
- <twig:Alert message="hello!" :user="user.id"/>
885
+ <twig:Alert message="hello!" :user="user.id" />
886
886
887
887
// equal to
888
- <twig:Alert message="hello!" user="{{ user.id }}"/>
888
+ <twig:Alert message="hello!" user="{{ user.id }}" />
889
889
890
890
// and pass object, or table, or anything you imagine
891
- <twig:Alert : foo="['col' => ['foo', 'oof']]"/>
891
+ <twig:Alert : foo="['col' => ['foo', 'oof']]" />
892
892
893
893
Passing Blocks to your Component
894
894
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments