mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
fixed a typo in the docs (closes #1137)
This commit is contained in:
+1
-1
@@ -241,7 +241,7 @@ The following filters will be matched by the above defined dynamic filter:
|
||||
|
||||
A dynamic filter can define more than one dynamic parts::
|
||||
|
||||
$filter = new Twig_SimpleFilter('*_path', function ($name, $suffix, $arguments) {
|
||||
$filter = new Twig_SimpleFilter('*_path_*', function ($name, $suffix, $arguments) {
|
||||
// ...
|
||||
});
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@ Dynamic Filters
|
||||
A filter name containing the special ``*`` character is a dynamic filter as
|
||||
the ``*`` can be any string::
|
||||
|
||||
$twig->addFilter('*_path', new Twig_Filter_Function('twig_path'));
|
||||
$twig->addFilter('*_path_*', new Twig_Filter_Function('twig_path'));
|
||||
|
||||
function twig_path($name, $arguments)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user