From: ornicar Date: Sun, 7 Nov 2010 19:26:32 +0000 (+0100) Subject: Fix replace filter name in documentation X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b54292327e02c30a5073e2f17f2a615394c1aa41;p=web%2Fkonrad%2Ftwig.git Fix replace filter name in documentation --- diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index f326697..8ca677e 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -1058,7 +1058,7 @@ The `format` filter formats a given string by replacing the placeholders [twig] {# string is a format string like: I like %this% and %that%. #} - {{ string|format(['%this%': foo, '%that%': "bar"]) }} + {{ string|replace(['%this%': foo, '%that%': "bar"]) }} {# returns I like foo and bar. (if the foo parameter equals to the foo string) #} ### `cycle`