@@ -37,7 +37,7 @@ A real-time product search component might look like this::
37
37
}
38
38
}
39
39
40
- .. code-block :: html+ twig
40
+ .. code-block :: twig
41
41
42
42
{# templates/components/ProductSearch.html.twig #}
43
43
{# for the Live Component to work, there must be a single root element
@@ -2246,7 +2246,7 @@ Defer Rendering
2246
2246
If a component is heavy to render, you can defer rendering it until after
2247
2247
the page has loaded. To do this, add the ``defer `` option:
2248
2248
2249
- .. code-block :: html+ twig
2249
+ .. code-block :: twig
2250
2250
2251
2251
{# With the HTML syntax #}
2252
2252
<twig:SomeHeavyComponent defer />
@@ -2274,7 +2274,7 @@ inside the component template (the ``placeholder`` macro) or from the calling te
2274
2274
In the component template, define a ``placeholder `` macro, outside of the
2275
2275
component's main content. This macro will be called when the component is deferred:
2276
2276
2277
- .. code-block :: html+ twig
2277
+ .. code-block :: twig
2278
2278
2279
2279
{# templates/recommended-products.html.twig #}
2280
2280
<div {{ attributes }}>
@@ -2324,7 +2324,7 @@ the ``loading-template`` option to point to a template:
2324
2324
2325
2325
Or override the ``loadingContent `` block:
2326
2326
2327
- .. code-block :: html+ twig
2327
+ .. code-block :: twig
2328
2328
2329
2329
{# With the HTML syntax #}
2330
2330
<twig:SomeHeavyComponent defer>
0 commit comments