@@ -19,7 +19,7 @@ There may also be tags in bundles you use that aren't listed here.
19
19
Functions
20
20
---------
21
21
22
- .. _ function .render :
22
+ .. _ reference_twig.function .render :
23
23
24
24
render
25
25
~~~~~~
@@ -40,6 +40,8 @@ options
40
40
Renders the fragment for the given controller (using `controller() <controller >`_)
41
41
or URI. For more information, see :ref: `templating-embedding-controller `.
42
42
43
+ The render strategy can be specified in the ``strategy `` key of the options.
44
+
43
45
.. tip ::
44
46
45
47
The URI can be generated by other methods, like `path <path >`_ and
@@ -65,6 +67,13 @@ Generates an ESI tag when possible or falls back to the behaviour of
65
67
66
68
The URI can be generated by other methods, like `path <path >`_ and
67
69
`url() <url >`_.
70
+
71
+ .. tip ::
72
+
73
+ The ``render_esi() `` function is an example of the shortcut functions
74
+ of ``render ``. It automatically sets the strategy based on what's given
75
+ in the function name, e.g. ``render_hinclude() `` will use the hinclude.js
76
+ strategy. This works for all ``render_*() `` functions.
68
77
69
78
controller
70
79
~~~~~~~~~~
84
93
**type **: ``array `` **default **: ``[] ``
85
94
86
95
Returns an instance of ``ControllerReference `` to be used with functions like
87
- `render() <function.render> ` and `render_esi() <render_esi> `.
96
+ :ref: `render() <reference_twig. function.render >` and `render_esi() <render_esi> `.
88
97
89
98
asset
90
99
~~~~~
@@ -128,7 +137,7 @@ variables
128
137
**type **: ``array `` **default **: ``[] ``
129
138
130
139
Renders the HTML of a complete form, more information in
131
- :ref: `the Twig Form reference<reference-forms-twig-form> `.
140
+ :ref: `the Twig Form reference <reference-forms-twig-form >`.
132
141
133
142
form_start
134
143
~~~~~~~~~~
@@ -143,7 +152,7 @@ variables
143
152
**type **: ``array `` **default **: ``[] ``
144
153
145
154
Renders the HTML start tag of a form, more information in
146
- :ref: `the Twig Form reference<reference-forms-twig-start> `.
155
+ :ref: `the Twig Form reference <reference-forms-twig-start >`.
147
156
148
157
form_end
149
158
~~~~~~~~
@@ -158,7 +167,7 @@ variables
158
167
**type **: ``array `` **default **: ``[] ``
159
168
160
169
Renders the HTML end tag of a form together with all fields that have not been
161
- rendered yet, more information in :ref: `the Twig Form reference<reference-forms-twig-end> `.
170
+ rendered yet, more information in :ref: `the Twig Form reference <reference-forms-twig-end >`.
162
171
163
172
form_enctype
164
173
~~~~~~~~~~~~
366
375
Makes a technical name human readable (i.e. replaces underscores by spaces and
367
376
capitalizes the string).
368
377
369
- .. _filter.trans :
370
-
371
378
trans
372
379
~~~~~
373
380
@@ -387,8 +394,6 @@ locale
387
394
Translates the text into the current language. More information in
388
395
:ref: `Translation Filters <book-translation-filters >`.
389
396
390
- .. _filter.transchoice :
391
-
392
397
transchoice
393
398
~~~~~~~~~~~
394
399
@@ -570,8 +575,6 @@ Sets the resources to override the form theme for the given form view instance.
570
575
You can use ``_self `` as resources to set it to the current resource. More
571
576
information in :doc: `/cookbook/form/form_customization `.
572
577
573
- .. _tag.trans :
574
-
575
578
trans
576
579
~~~~~
577
580
@@ -588,8 +591,6 @@ locale
588
591
589
592
Renders the translation of the content. More information in :ref: `book-translation-tags `.
590
593
591
- .. _tag.transchoice :
592
-
593
594
transchoice
594
595
~~~~~~~~~~~
595
596
0 commit comments