This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Some code style fixes
Fixes that:
- Type cast is unnecessary
- Unnecessary curly braces syntax for variable
- Operations priority might differ that except
Commits
-------
17c6371f Some code style fixes
* 2.x:
Fix sandbox support when using include(template_from_string())
Add test to verify that filter is not working when template_from_string is used.
In |filter(), |map(), and |reduce(), throw a RuntimeError instead of a TypeError
* 1.x:
Fix sandbox support when using include(template_from_string())
Add test to verify that filter is not working when template_from_string is used.
In |filter(), |map(), and |reduce(), throw a RuntimeError instead of a TypeError
* 2.x:
fixed macro auto-import when a template contains only macros
fixed end of constructor node logic
bumped version to 2.11.3-DEV
prepared the 2.11.2 release
fixed macro auto-import
fix CS
fix CS
bumped version to 2.12
* 2.x:
tweaked docs
Add information for when `filter` filter was added in 2.x branch
moved tests
deprecated CoreExtension::setEscaper() and CoreExtension::getEscaper() in favor of the same methods on EscaperExtension
tweaked docs
doc(filter): add example of `filter` without `for` use
updated CHANGELOG
Local macros auto-import
fixed CS
updated docs for macros
simplified code
tweaked docs for macros
added a better error message for unknown macros
This PR was merged into the 3.x branch.
Discussion
----------
Change false to null to allow for type hinting
Commits
-------
75333805 changed false to null to allow for type hinting
* 1.x:
do not check sandbox for __toString if method does not exist on object
tweaked sandbox generated code
fixed indentation of the compiled template