Skip to content

Commit f291c0c

Browse files
committed
Review suggestions
1 parent 4f2a5af commit f291c0c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/templating/components.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ You can create a Twig Component and add it to a group using YAML configuration,
4141

4242
``` yaml
4343
ibexa_twig_components:
44+
# Component group
4445
storefront-before-head:
46+
# Component name
4547
google_tag_manager:
4648
type: script
4749
arguments:
@@ -50,15 +52,15 @@ ibexa_twig_components:
5052

5153
The Component priority cannot be specified when using the YAML configuration, but it allows you to use the built-in components to quickly achieve common goals.
5254

53-
## Built-in componenents
55+
## Built-in components
5456

5557
| Name | Description | YAML type |
5658
|---|---|---|
57-
| Script | Renders a [`<script>` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script) | `script` |
58-
| Stylesheet | Renders a [`<link>` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link) | `stylesheet`
59-
| Template | Renders a Twig template|`template` |
60-
| Controller | Renders a Symfony controller |`controller` |
61-
| HTML | Renders static HTML |`html` |
59+
| [Script](https://github.com/ibexa/twig-components/blob/main/src/lib/Component/ScriptComponent.php) | Renders a [`<script>` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script) | `script` |
60+
| [Stylesheet](https://github.com/ibexa/twig-components/blob/main/src/lib/Component/LinkComponent.php) | Renders a [`<link>` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link) | `stylesheet`
61+
| [Template](https://github.com/ibexa/twig-components/blob/main/src/lib/Component/TemplateComponent.php) | Renders a Twig template|`template` |
62+
| [Controller](https://github.com/ibexa/twig-components/blob/main/src/lib/Component/ControllerComponent.php) | Renders a Symfony controller |`controller` |
63+
| [HTML](https://github.com/ibexa/twig-components/blob/main/src/lib/Component/HtmlComponent.php) | Renders static HTML |`html` |
6264

6365
See the example below:
6466
``` yaml
@@ -117,7 +119,7 @@ You can modify the Component rendering process by:
117119

118120
Use the built-in integration with [Symfony Profiler]([[= symfony_doc =]]/profiler.html) to see which Twig Components have been rendered in a given view. In the [[= product_name =]] tab you can find:
119121

120-
- the list of rendered Twig Component groups
121-
- the list of rendered Twig Components
122+
- the list of all rendered Twig Component groups by the given view, including empty groups
123+
- the list of rendered Twig Components with information about the group they belong to
122124

123125
![Symfony Profiler showing the list of rendered Twig Components in a back office view](img/twig_components_symfony_profiler.png "Symfony Profiler showing the list of rendered Twig Components in a back office view")

0 commit comments

Comments
 (0)