We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508bef8 commit 3112ee9Copy full SHA for 3112ee9
src/TwigComponent/doc/index.rst
@@ -906,6 +906,26 @@ should be compiled by Twig
906
907
// and pass object, or table, or anything you imagine
908
<twig:Alert :foo="['col' => ['foo', 'oof']]"/>
909
+
910
+This syntax came also with special syntax for embedded component
911
912
+.. code-block:: html+twig
913
914
+ <twig:Alert message="hello" :user="user.id">
915
+ <twig:block name="footer">
916
+ ...
917
+ </twig:block>
918
+ </twig:Alert>
919
920
+And in your component template you can access your embedded block
921
922
923
924
+ <div class="content">
925
+ {% block footer %}
926
927
928
+ </div>
929
930
You can pass content directly inside your component.
931
0 commit comments