script
Generates an HTML <script> tag for a specific resource URL. The <script> tag includes the type="text/javascript" attribute.
{{#script url /}}
Required params
url string: A resource URL.
Example
The following example is used to generate a script tag for a specified JavaScript file within the theme.
{{#script "base/index.js" | asset_url() /}}
Was this article helpful to you?