mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
minor #2910 fix(with): comment some strings (Kocal)
This PR was squashed before being merged into the 2.x branch (closes #2910).
Discussion
----------
fix(with): comment some strings
I don't know if it was intentional or not, but I find the following screenshot weird:

I think it's better with a comment instead:

What do you think?
Commits
-------
aca6e2cd fix(with): comment some strings
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ scope are not visible outside of the scope:
|
||||
|
||||
{% with %}
|
||||
{% set foo = 42 %}
|
||||
{{ foo }} foo is 42 here
|
||||
{{ foo }} {# foo is 42 here #}
|
||||
{% endwith %}
|
||||
foo is not visible here any longer
|
||||
|
||||
@@ -19,7 +19,7 @@ is equivalent to the following one:
|
||||
.. code-block:: jinja
|
||||
|
||||
{% with { foo: 42 } %}
|
||||
{{ foo }} foo is 42 here
|
||||
{{ foo }} {# foo is 42 here #}
|
||||
{% endwith %}
|
||||
foo is not visible here any longer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user