feat: add builder doc (tpl)

This commit is contained in:
Simon Vieille 2025-11-28 09:58:02 +01:00
commit 01b94093e6
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -78,6 +78,17 @@ class YourPage extends Page
}
```
Create a template:
```twig-inline title="templates/page/your_page/default.html.twig"
{% extends 'base.html.twig' %}
{% block page %}
{{ _page.myBlock.value|block_to_html }}
{% endblock %}
```
## Creating custom block
The easy way is to run: `php bin/console make:builder-block`.