You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<twig:Alert warning :user="user.username" message="I am an alert!">
857
+
<div class="alert-content">
858
+
// ... your component content
859
+
</div>
860
+
<twig:block name="footer">
861
+
// ... footer content
862
+
</twig:block>
863
+
</twig:Alert>
869
864
870
865
You can now use a custom tag prefix starting by <twig: and your component name
871
866
872
867
.. code-block:: html+twig
873
868
874
-
<twig:table></:table>
869
+
<twig:Alert></:Alert>
875
870
// and also self closing tag
876
-
<twig:table/>
871
+
<twig:Alert/>
877
872
878
873
You can pass an attribute to your component like any HTML attribute and also use the ':' prefix to your attribute to indicate that the value should be compiled by Twig
0 commit comments