From 34c9d36af3b0d492ea0f165ce70cfd861a70eaeb Mon Sep 17 00:00:00 2001 From: Thibaut THOUEMENT Date: Fri, 23 Aug 2024 16:04:20 +0200 Subject: [PATCH] Add documentation about block parameter for #[Template] --- templates.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates.rst b/templates.rst index 795ac3a7ac3..290d2af3401 100644 --- a/templates.rst +++ b/templates.rst @@ -579,6 +579,8 @@ to define the template to render:: class ProductController extends AbstractController { #[Template('product/index.html.twig')] + // You can also add the "block" parameter to use the block inside the template + #[Template('product/index.html.twig', block: 'main')] public function index(): array { // ...