Skip to content

Commit 3fee544

Browse files
committed
Using an extra space before self-closing tags
More in the style of React
1 parent 666452f commit 3fee544

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.doctor-rst.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rules:
6565
no_php_open_tag_in_code_block_php_directive: ~
6666
# no_php_prefix_before_bin_console: ~
6767
# no_php_prefix_before_composer: ~
68-
no_space_before_self_xml_closing_tag: ~
68+
# no_space_before_self_xml_closing_tag: ~
6969
only_backslashes_in_namespace_in_php_code_block: ~
7070
only_backslashes_in_use_statements_in_php_code_block: ~
7171
ordered_use_statements: ~

src/TwigComponent/doc/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ Twig Components come with an HTML-like syntax to ease the readability of your te
855855

856856
<twig:Alert></twig:Alert>
857857
// or use a self-closing tag
858-
<twig:Alert/>
858+
<twig:Alert />
859859

860860
Passing Props as HTML Attributes
861861
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -882,13 +882,13 @@ normal ``{{ }}`` syntax:
882882

883883
.. code-block:: html+twig
884884

885-
<twig:Alert message="hello!" :user="user.id"/>
885+
<twig:Alert message="hello!" :user="user.id" />
886886

887887
// equal to
888-
<twig:Alert message="hello!" user="{{ user.id }}"/>
888+
<twig:Alert message="hello!" user="{{ user.id }}" />
889889

890890
// and pass object, or table, or anything you imagine
891-
<twig:Alert :foo="['col' => ['foo', 'oof']]"/>
891+
<twig:Alert :foo="['col' => ['foo', 'oof']]" />
892892

893893
Passing Blocks to your Component
894894
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)