This PR was merged into the master branch.
Discussion
----------
Improved macros
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #861, #867, #929, #1052
| License | MIT
| Doc | yes
* Fixed fatal error for unknown macro
* Added support for named arguments for macros
* Added support for directly call macros defined in the same template
Commits
-------
3004ba1 Added support for directly call macros defined in the same template
63615a6 Added support for named arguments for macros
09fedb8 Fixed fatal error for unknown macro
9e96837 Refactored parsing of macros
This PR was squashed before being merged into the master branch (closes#1140).
Discussion
----------
Fix for {% embed %} error line number bug
This deals with issue #958. I've gone into a lot of detail about the fix itself in the commit message for 12cc0a0, so I won't repeat any of that here. Take a look and let me know what you think!
Commits
-------
270b791 Fix for {% embed %} error line number bug
This PR was merged into the master branch.
Discussion
----------
Fix issue #1126
@fabpot Is this way of adding the test case is ok for you?
Commits
-------
2430431Fixed#11264ce9cbf Added test case for issue #1126
This PR was merged into the master branch.
Discussion
----------
Use a constant for the main namespace
Commits
-------
f80bab2 Use a constant for the main namespace
This PR was merged into the master branch.
Discussion
----------
Add more complete documentation for building tests.
In response to #1121 I've added more extensive documentation around implementing tests. Both with and without a node_class.
Commits
-------
da06f59 Add more complete documentation for building tests.
This PR was merged into the master branch.
Discussion
----------
Small fixes
Commits
-------
a6205c5 Fixed exception message in Call
b5928de Fixed PSR-0 in tests
This PR was merged into the master branch.
Discussion
----------
Update url_encode.rst
Documented hidden feature to use rawurlencode.
Commits
-------
594e2db Update url_encode.rst
This PR was merged into the master branch.
Discussion
----------
Updated {% spaceless %} example to show how spaces in strings are handled
Updated output to show space is preserved within `<div><strong>foo bar</strong></div>` HTML.
Commits
-------
2861bef Updated {% spaceless %} example to show how spaces in strings are handled.
This PR was merged into the master branch.
Discussion
----------
Update include.rst
Fixing typo: "Twig will ignore the statement if the template to be *ignored* does not exist."
[Sorry, typed the commit desc in the wrong box :( ]
Commits
-------
fb3fdac Update include.rst
This PR was merged into the master branch.
Discussion
----------
Fixed typo in doc for the reverse filter
Commits
-------
3c63626 Fixed typo in doc for the reverse filter
This PR was merged into the master branch.
Discussion
----------
Made the include function safe for the autoescaping
This fixes a regression introduced in ba88c75557Fixes#1097
I have not updated the changelog as the regression is not part of a release yet
Commits
-------
3bc113b Made the include function safe for the autoescaping
This PR was merged into the master branch.
Discussion
----------
Update slice.rst
I was (somehow) misled by the example, thinking `'1234'[2:]` outputs `34` because it `2:` mean copy the last 2 characters...
This happens when you are in a hurry and didn't look into the text.
Let makes it less ambiguous.
Commits
-------
3ddff67 Update slice.rst
This PR was merged into the master branch.
Discussion
----------
change mention of print to sprintf in format filter
The format specifiers are actually mentioned on the [sprintf](http://php.net/sprintf) page
Commits
-------
5746c11 change mention of print to sprintf in format filter