File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -88,4 +88,16 @@ Or you can also specify a string to display as the default content:
88
88
89
89
{{ render_hinclude(controller('...'), {default: 'Loading...'}) }}
90
90
91
+ Use the ``attributes `` option to define the value of hinclude.js options:
92
+
93
+ .. code-block :: twig
94
+
95
+ {# if set to true, cross-site Access-Control requests use credentials such
96
+ as cookies, authorization headers or TLS client certificates #}
97
+ {{ render_hinclude(controller('...'), {attributes: {data-with-credentials: 'true'}}) }}
98
+
99
+ {# if set to true and the contents include some JavaScript code, that code
100
+ is run immediately after loading the contents #}
101
+ {{ render_hinclude(controller('...'), {attributes: {evaljs: 'true'}}) }}
102
+
91
103
.. _`hinclude.js` : http://mnot.github.io/hinclude/
You can’t perform that action at this time.
0 commit comments