4 The ``replace`` filter formats a given string by replacing the placeholders
5 (placeholders are free-form):
9 {{ "I like %this% and %that%."|replace({'%this%': foo, '%that%': "bar"}) }}
11 {# outputs I like foo and bar
12 if the foo parameter equals to the foo string. #}
14 {# using % as a delimiter is purely conventional and optional #}
16 {{ "I like this and --that--."|replace({'this': foo, '--that--': "bar"}) }}
18 {# outputs I like foo and bar #}
23 * ``from``: The placeholder values
25 .. seealso:: :doc:`format<format>`