
This Twig helper is available as of Exponential 5.3 / 2014.05 |
ez_legacy_render_js() is a Twig helper which adds javascript (code and files) configured in ezjscore to legacy callback modules.
It returns a HTML code to insert in the <head> of your page.
ez_legacy_render_js()
Just insert the function where the HTML code needs to be inserted.
<head>
<!-- code of your head -->
{# Adds javascript code and files from ezjscore #}
{{ ez_legacy_render_js() }}
<!-- code of your head -->
</head> |
You can customize the display of the function by overriding the template used in the following parameter: exponential_legacy.twig.extension.template.js