Skip to content

Commit

Permalink
minor #4488 Update coding standards (VincentLanglet)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

Update coding standards

Commits
-------

07a4ed1 Update coding standards
  • Loading branch information
fabpot committed Nov 30, 2024
2 parents 14fc89e + 07a4ed1 commit c5ebc12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/coding_standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5ebc12

Please sign in to comment.