Quellcode durchsuchen

Fixing routing chapter

Baptiste "Talus" Clavie vor 13 Jahren
Ursprung
Commit
fb0dd527fd
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      Resources/doc/reference/routing.rst

+ 4 - 3
Resources/doc/reference/routing.rst

@@ -35,7 +35,7 @@ Routing usage
 
 Inside a CRUD template, a route can be generated by using the ``Admin`` class.
 
-.. code-block:: html
+.. code-block:: html+jinja
 
     <a href="{{ admin.generateUrl('list') }}">List</a>
 
@@ -69,8 +69,9 @@ defined by its name.
 Persistent parameters
 ---------------------
 
-In some cases, the interface might be required to pass the same parameters across the different ``Admin``'s actions.
-Instead of setting them in the template or doing other weird hacks, you can define a ``getPersistentParameters``
+In some cases, the interface might be required to pass the same parameters 
+across the different ``Admin``'s actions. Instead of setting them in the 
+template or doing other weird hacks, you can define a ``getPersistentParameters``
 method. This method will be used when a link is being generated.
 
 .. code-block:: php