# section

The section being rendered.

<!-- Generated by `bin/console app:dev:reference` from the platform code and docs/dev/_data/. Do not edit by hand. -->

The section being rendered. Available inside every section file.

Available on: every section file.

## Properties

| Property | Type | Description |
| --- | --- | --- |
| `section.id` | string | The section key from the JSON template. |
| `section.type` | string | The section type (the file name). |
| `section.settings` | hash | Values of the section settings, resolved - a `product` setting gives a product object, not an id. |
| `section.blocks` | list of [`block`](block.md) | The blocks of the section. |
| `section.index` | number | Position of the section on the page, counted from 0. |
| `section.attributes` | html | Attributes the theme editor needs to select the section in the preview. Print them on the root element. |

