fix template doc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Vieille 2022-02-01 14:19:56 +01:00
parent 69366f1a01
commit 8c45315bfd

View file

@ -73,21 +73,15 @@ Murph has somes twig functions to manage URLs:
### Generic functions
* Same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#url) but catches all exceptions:
`{{ safe_url(routeName, options, relative) }}`: same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#url) but catches all exceptions
* Same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#path) but catches all exceptions:
`{{ safe_path(routeName, options, relative) }}`
* Same as [twig url](https://symfony.com/doc/current/reference/twig_reference.html#url) but catches all exceptions: `{{ safe_url(routeName, options, relative) }}`
* Same as [twig path](https://symfony.com/doc/current/reference/twig_reference.html#path) but catches all exceptions: `{{ safe_path(routeName, options, relative) }}`
### Node functions
* Generates a URL using a node:
`{{ node_url(node, options, relative) }}`
* Generates a path using a node:
`{{ node_path(node, options, relative) }}`
* Generates a URL using a node and catches all exceptions:
`{{ safe_node_url(node, options, relative) }}`
* Generates a path using a node and catches all exceptions:
`{{ safe_node_path(node, options, relative) }}`
* Generates a URL using a node: `{{ node_url(node, options, relative) }}`
* Generates a path using a node: `{{ node_path(node, options, relative) }}`
* Generates a URL using a node and catches all exceptions: `{{ safe_node_url(node, options, relative) }}`
* Generates a path using a node and catches all exceptions: `{{ safe_node_path(node, options, relative) }}`
### Filters