mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-17 08:50:50 +00:00
Document {#--#} as the replacement for the deprecated spaceless filter
This commit is contained in:
@@ -1299,6 +1299,18 @@ the modifiers on one side of a tag or on both sides:
|
||||
{{~ value }} </li>
|
||||
{# outputs '<li>\nno spaces </li>' #}
|
||||
|
||||
To remove the whitespace between two tags, use an empty comment with the
|
||||
whitespace trimming modifier on both sides:
|
||||
|
||||
.. code-block:: html+twig
|
||||
|
||||
<div>
|
||||
{#--#}
|
||||
<strong>foo</strong>
|
||||
{#--#}
|
||||
</div>
|
||||
{# outputs '<div><strong>foo</strong></div>' #}
|
||||
|
||||
Extensions
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user