---
title: "script"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/tag/script'
  md: 'https://developer.shopline.com/docs/sline/tag/script.md'
---

# script


    Generates an HTML `<script>` tag for a specific resource URL. The `<script>` tag includes the `type="text/javascript"` attribute.

    



```sline
{{#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.

            

            
<SlineExample path={''} objects={ 
    [""] 
}>
```sline
{{#script "base/index.js" | asset_url() /}}
```
</SlineExample>
            
        
    
