script_ tag
string | script_tag
returns string
Generates an HTML <script> tag for a given resource URL. The tag has a type attribute of .
{{ 'cart.js' | asset_url | script_tag }}
Code
{{ '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>
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?