---
title: "layout"

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

# layout


    Specifies the layout file used for rendering. The `layout` tag can only be used in HTML templates.

    If the `layout` tag is not used in the current template, the system uses the `layout/theme.html` file by default.



```sline
{{#layout name /}}
```





    
        ## Required params

        
             `name` `string`\: The name of the layout file that you want to use. Specify `none` if you do not want to use any layout file.
        
    





    
## Examples

        
            ### Disabling layout

            The following example is used to render the current template without using any file from the `layout` directory.

            
```sline
{{#layout none /}}
```
            

            
        
            ### Using a specified layout file

            The following example is used to render the current template with the `layout/password.html` file.

            
```sline
{{#layout "password" /}}
```
            

            
        
    
