---
title: Apply templates at the row level
description: ```
glaze json misc/test-data/[123].json --template '{{.a}}-{{.b}}: {{.d_f}}' \
--use-row-templates --fields a,_0 \
--output csv
```

doc_version: 1
last_updated: 2026-07-02
---

You can also apply templates at the row level, once the input has been flattened.
In this case, because flattened columns contain the symbol `.`, fields get renamed
to use the symbol `_` as a separator.

The new column is output alongside all the other columns.

``` 
❯ glaze json misc/test-data/[123].json --template '{{.a}}-{{.b}}: {{.d_f}}' \
  --use-row-templates --fields a,_0 \
  --output csv
a,_0
1,1-2: 7
10,10-20: 70
100,100-200: <no value>
```

