Skip to content

Commit 34da94e

Browse files
committed
Fixing old render syntax thanks to @oscherler
1 parent e6ccb44 commit 34da94e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

book/templating.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,15 @@ Asynchronous Content with hinclude.js
677677

678678
Controllers can be embedded asynchronously using the hinclude.js_ javascript library.
679679
As the embedded content comes from another page (or controller for that matter),
680-
Symfony2 uses the standard ``render`` helper to configure ``hinclude`` tags:
680+
Symfony2 uses a version of the standard ``render`` function to configure ``hinclude``
681+
tags:
681682

682683
.. configuration-block::
683684

684685
.. code-block:: jinja
685686
686-
{% render url('...') with {}, {'standalone': 'js'} %}
687+
{{ render_hinclude(controller('...')) %}
688+
{{ render_hinclude(url('...')) %}
687689
688690
.. code-block:: php
689691

0 commit comments

Comments
 (0)