script_tag
Generates an HTML <script> tag for a provided resource URL, with the type attribute set to text/javascript.
Parameters
url{String}: The CDN URL link. This parameter is required.returns{String}: Returns an HTML string.
Usage
{{script_tag url }}
Example
{{ script_tag (asset_url 'cart.js') }}
Was this article helpful to you?