---
title: "blocks"

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

# blocks


    Renders all blocks within the current scope. The tag must be used in conjunction with the [block](https://developer.shopline.com/docs/sline/tag/block.md) tag.

The `blocks` tag can only be used within section and block templates. During the rendering process, the system iterates through all blocks in the current scope and exposes the [forblock](https://developer.shopline.com/docs/sline/object/forblock.md) object, which supports custom processing logic.

    



```sline
{{#blocks}}
  {{#block /}}
{{/blocks}}
```








