-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update coding standards #4488
Update coding standards #4488
Conversation
|
||
* Put exactly one space after the ``:`` sign in macro argument declarations: | ||
* Put exactly one space after the ``:`` sign when using named arguments: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's worth mentioning a standard for named argument with =
since
Use : instead of = to separate argument names and values:
{{ data|convert_encoding(from: 'iso-2022-jp', to: 'UTF-8') }}
doc/coding_standards.rst
Outdated
|
||
.. code-block:: twig | ||
|
||
{% macro html_input(class: "input") %} | ||
{% html_input(class: "input") %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% html_input(class: "input") %} | |
{{ html_input(class: "input") }} |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, updated
3929ed0
to
07a4ed1
Compare
Thank you @VincentLanglet. |
No description provided.