Inserts a JavaScript file into the HTML document page.. This tag allows you to add external JavaScript files to your WordPress or Joomla site.
Basic usage:
{{ document.script }}
Usage with parameters:
{{ document.script(Link to the file) }}
Parameters:
Link to the file
(optional) – URL of the JavaScript file to be included. This should be a full URL to the external JavaScript file you want to include in your document.
Example:
{{ document.script(https://code.jquery.com/ui/1.12.1/jquery-ui.js' type='text/javascript'></script>) }}
Leave a Reply
You must be logged in to post a comment.