<p>Stick <code>{{ dump(_context) }}</code> in a template file to print out all the available values.</p>

<p><code>{{ dump(_context|keys) }}</code> Outputs the keys of the array without going through it recursively.</p>

CC BY-SA 3.0
2017-02-03T00:14:36.450Z
An addendum, the craft_kint plugin, [github.com/mildlygeeky/craft_kint](https://github.com/mildlygeeky/craft_kint), lets you use `{{ d{_context) }}` and makes the output much friendlier. Collapsible, colorful, and the like.
ponies
CC BY-SA 3.0
2017-02-02T22:42:15.840Z
2017-02-02T22:42:15.840Z
ponies
<p>I'm trying to dump a list of available template tokens, and their contents. There's a command that's available in dev mode, but I haven't found it's documentation.</p>

<templating><debugging>
What's the template command to print available tokens?
# What's the template command to print available tokens?

(Asked by: username_0 on 2017-02-02)

I'm trying to dump a list of available template tokens, and their contents. There's a command that's available in dev mode, but I haven't found it's documentation.

**Tags:** templating, debugging

---

## 1 answers

### Answer by username_0 on 2017-02-02. Score: 3 | Accepted answer

Stick `{{ dump(_context) }}` in a template file to print out all the available values.

`{{ dump(_context|keys) }}` Outputs the keys of the array without going through it recursively.

> **Comments:**
> **username_0**: An addendum, the craft_kint plugin, [github.com/mildlygeeky/craft_kint](https://github.com/mildlygeeky/craft_kint), lets you use `{{ d{_context) }}` and makes the output much friendlier. Collapsible, colorful, and the like.  

---

