Security update for Core, with self-updated composer
[yaffs-website] / vendor / twig / twig / doc / filters / replace.rst
index 8dbb745939b7b2f1e91fe1c68330a1ea895dbcb9..31392f311546f8cdb9cb4091e55fb1f43f466df4 100644 (file)
@@ -11,6 +11,12 @@ The ``replace`` filter formats a given string by replacing the placeholders
     {# outputs I like foo and bar
        if the foo parameter equals to the foo string. #}
 
+    {# using % as a delimiter is purely conventional and optional #}
+
+    {{ "I like this and --that--."|replace({'this': foo, '--that--': "bar"}) }}
+
+    {# outputs I like foo and bar #}
+
 Arguments
 ---------