mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
deprecated the spaceless tag
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
* 2.7.0 (2019-XX-XX)
|
||||
|
||||
* deprecated the spaceless tag
|
||||
* added a spaceless filter
|
||||
* added max value to the "random" function
|
||||
* deprecated Twig\Extension\InitRuntimeInterface
|
||||
* deprecated Twig\Loader\ExistsLoaderInterface
|
||||
|
||||
@@ -28,6 +28,10 @@ Errors
|
||||
Tags
|
||||
----
|
||||
|
||||
* The ``spaceless`` tag is deprecated in Twig 2.7. Use the ``spaceless`` filter
|
||||
instead or ``{% filter spaceless %}`` (the ``Twig\Node\SpacelessNode`` and
|
||||
``Twig\TokenParser\SpacelessTokenParser`` classes are also deprecated).
|
||||
|
||||
* Using the ``spaceless`` tag at the root level of a child template is
|
||||
deprecated in Twig 2.5.0. This does not work as one would expect it to work
|
||||
anyway. In Twig 3.0, it will throw a ``Twig\Error\SyntaxError`` exception.
|
||||
|
||||
@@ -18,6 +18,8 @@ use Twig\Compiler;
|
||||
*
|
||||
* It removes spaces between HTML tags.
|
||||
*
|
||||
* @deprecated since Twig 2.7, to be removed in 3.0
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class SpacelessNode extends Node implements NodeOutputInterface
|
||||
|
||||
@@ -23,6 +23,8 @@ use Twig\Token;
|
||||
* </div>
|
||||
* {% endspaceless %}
|
||||
* {# output will be <div><strong>foo</strong></div> #}
|
||||
*
|
||||
* @deprecated since Twig 2.7, to be removed in 3.0 (use the spaceless filter instead)
|
||||
*/
|
||||
final class SpacelessTokenParser extends AbstractTokenParser
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user