From 8c45315bfd59f2a5d8356ebf04c719453ff1adf2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 1 Feb 2022 14:19:56 +0100 Subject: [PATCH] fix template doc --- docs/template.md | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/docs/template.md b/docs/template.md index aee92af..656a5cc 100644 --- a/docs/template.md +++ b/docs/template.md @@ -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