Skip to main content

script_tag

string | script_tag
returns string

Generates an HTML <script> tag for a given resource URL. The tag has a type attribute of text/javascript.

{{ 'cart.js' | asset_url | script_tag }}

Output

<script src="//polinas-potent-potions.myshopify.com/cdn/shop/t/4/assets/cart.js?v=83971781268232213281663872410" type="text/javascript"></script>
Was this page helpful?