1``format``
2==========
3
4The ``format`` filter formats a given string by replacing the placeholders
5(placeholders follows the `sprintf`_ notation):
6
7.. code-block:: twig
8
9    {{ "I like %s and %s."|format(foo, "bar") }}
10
11    {# outputs I like foo and bar
12       if the foo parameter equals to the foo string. #}
13
14.. _`sprintf`: https://secure.php.net/sprintf
15
16.. seealso::
17
18    :doc:`replace<replace>`
19