This PR was squashed before being merged into the 1.x branch (closes#2925).
Discussion
----------
Whitespace improvements
This pull request introduces a new whitespace control modifier in addition to the `-` one. The new `~` modifier consume whitespace excluding newlines.
closes#2924, closes#1005, closes#1423, closes#1569, and many already closed ones.
Commits
-------
96eab472 added support for a new whitespace trimming option
7e3ec0fb made Lexer regexes more readable
591da368 simplified Lexer regexes
This PR was squashed before being merged into the 1.x branch (closes#2923).
Discussion
----------
Add Traversable support of length filter
closes https://github.com/twigphp/Twig/issues/2922
Commits
-------
3a32f4a5 Add Traversable support of length filter
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#2921).
Discussion
----------
Update json_encode.rst
Commits
-------
a07b5ea0 Update json_encode.rst
This PR was merged into the 1.x branch.
Discussion
----------
Add spaceless filter to the docs index
Commits
-------
57beae46 Add spaceless filter to the index
This PR was merged into the 1.x branch.
Discussion
----------
fix major version in Environment
Commits
-------
cee29710 fix major version in Environment
This PR was merged into the 1.x branch.
Discussion
----------
Fix CheckToStringNode implementation
closes#2908
Commits
-------
e24f796b fixed CheckToStringNode implementation
This PR was merged into the 1.x branch.
Discussion
----------
Refactor the implementation of dump()
Commits
-------
243021e6 refactored the implementation of dump()
This PR was squashed before being merged into the 1.x branch (closes#2909).
Discussion
----------
Allow Traversable objects to be used in the with keyword of the include and embed tags
Same as #2901 but for `include` and `embed`.
Commits
-------
068306fe Allow Traversable objects to be used in the with keyword of the include and embed tags
This PR was merged into the 1.x branch.
Discussion
----------
Allow Traversable objects to be used in the with tag
Currently `with` does an `in_array()` check, this allows `Traversable`~/`JsonSerializable`~ objects to be used as they can also contain a hash.
Commits
-------
572a2a09 Allow Traversable objects to be used in the with tag
This PR was merged into the 1.x branch.
Discussion
----------
Fix BC break on Environment::resolveTemplate()
closes#2900
Commits
-------
b24d5256 fixed BC break on Environment::resolveTemplate()
This PR was merged into the 1.x branch.
Discussion
----------
Fixed spaceless filter
As now the `spaceless` tag is deprecated, I tried to replace it by the new `spaceless` filter instead but it broke my application. Actually there is a difference between the tag and the filter. Spaceless tag trim also whistespace (or line feed).
I propose to do the same thing on the new filter.
Commits
-------
3412d1a5 Fixed spaceless filter
This PR was merged into the 1.x branch.
Discussion
----------
Fix the autoloader to take into account namespaced classes
fixes#2895
Commits
-------
0c1d18b9 fixed the autoloader to take into account namespaced classes
This PR was merged into the 1.x branch.
Discussion
----------
Add TemplateWrapper::getTemplateName()
closes#2892
Commits
-------
861066e5 added TemplateWrapper::getTemplateName()
This PR was merged into the 1.x branch.
Discussion
----------
Force loading class aliases used in typehints
Fixes#2886
Commits
-------
65c05591 force loading class aliases used in typehints