---
title: "block"

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

# block


    Used for rendering blocks within the current iteration scope. It must be nested inside a [blocks](https://developer.shopline.com/docs/sline/tag/blocks.md) tag.

    



```sline
{{#blocks}}
  {{#block [hash...] /}}
{{/blocks}}
```



    
      `hash`

      
          Pass parameters to the block in key-value pairs. Within the block, these parameters can be accessed via the [props](https://developer.shopline.com/docs/sline/object/props.md) object.


      
    







    
        ## Example

        
            ### Special block processing

            In the `@/product-card` block, the `product` parameter is passed and used.

            
```sline
<!-- section/product-list/product-list.html -->
{{#blocks}}
  {{#if forblock.type == "@/product-card"}}
    {{#block product=product /}}
  {{#else /}}
    {{#block /}}
  {{/if}}
{{/blocks}}


<!-- blocks/product-card.html -->
<div>{{ props.product.title }}</div>

```
            

            
        
    
