Skip to content

Commit facf1f1

Browse files
committed
CS
1 parent 741c24e commit facf1f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A real-time product search component might look like this::
3737
}
3838
}
3939

40-
.. code-block:: html+twig
40+
.. code-block:: twig
4141
4242
{# templates/components/ProductSearch.html.twig #}
4343
{# for the Live Component to work, there must be a single root element
@@ -2246,7 +2246,7 @@ Defer Rendering
22462246
If a component is heavy to render, you can defer rendering it until after
22472247
the page has loaded. To do this, add the ``defer`` option:
22482248

2249-
.. code-block:: html+twig
2249+
.. code-block:: twig
22502250
22512251
{# With the HTML syntax #}
22522252
<twig:SomeHeavyComponent defer />
@@ -2274,7 +2274,7 @@ inside the component template (the ``placeholder`` macro) or from the calling te
22742274
In the component template, define a ``placeholder`` macro, outside of the
22752275
component's main content. This macro will be called when the component is deferred:
22762276

2277-
.. code-block:: html+twig
2277+
.. code-block:: twig
22782278
22792279
{# templates/recommended-products.html.twig #}
22802280
<div {{ attributes }}>
@@ -2324,7 +2324,7 @@ the ``loading-template`` option to point to a template:
23242324

23252325
Or override the ``loadingContent`` block:
23262326

2327-
.. code-block:: html+twig
2327+
.. code-block:: twig
23282328
23292329
{# With the HTML syntax #}
23302330
<twig:SomeHeavyComponent defer>

0 commit comments

Comments
 (0)