From 07a4ed17d2b77afaf5f0772e1020812212d2bf3a Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 30 Nov 2024 09:51:13 +0100 Subject: [PATCH] Update coding standards --- doc/coding_standards.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/coding_standards.rst b/doc/coding_standards.rst index dcae56da1..58272883e 100644 --- a/doc/coding_standards.rst +++ b/doc/coding_standards.rst @@ -88,17 +88,17 @@ standards: [1, 2, 3] {'name': 'Fabien'} -* Do not put any spaces before and after ``=`` in macro argument declarations: +* Put exactly one space before and after ``=`` in macro argument declarations: .. code-block:: twig - {% macro html_input(class="input") %} + {% macro html_input(class = "input") %} -* Put exactly one space after the ``:`` sign in macro argument declarations: +* Put exactly one space after the ``:`` sign when using named arguments: .. code-block:: twig - {% macro html_input(class: "input") %} + {{ html_input(class: "input") }} * Use snake case for all variable names (provided by the application and created in templates), function/filter/test names, argument names and named