---
title: "unflatten-variable-names"
manual: "Handlebars"
version: "main"
permalink: "https://docs.typo3.org/permalink/cpsit/typo3-handlebars:data-processor-unflatten-variable-names@main"
source: "Usage/DataProcessors/UnflattenVariableNames.rst"
rendered: "2026-09-29T09:05:57+00:00"
---

# unflatten-variable-names {#data-processor-unflatten-variable-names}

**Class:** `\CPSIT\Typo3Handlebars\DataProcessing\UnflattenVariableNamesProcessor`

Converts dot-separated flat variable names into nested arrays. This is useful
when other processors set their `as` key to a dotted path,
representing the intended position in a nested data structure.

```typoscript
dataProcessing {
    10 = menu
    10 {
        as = page.nav.mainMenu
    }

    20 = menu
    20 {
        as = page.nav.footerLinks
        special = directory
        special.value = 42
    }

    90 = unflatten-variable-names
}
```

After processing, the template receives a nested `page` object:

```handlebars
{{#each page.nav.mainMenu}}
    <a href="{{link}}">{{title}}</a>
{{/each}}
```

The processor has no configuration properties and operates on the entire
processed data array.
