# print

Source: https://zotonic.com/docs/1300/print

URI: https://zotonic.com/id/1300

Language: en



::: {.aside}
See also

<a href="/id/doc_template_scomp_scomp_debug" class="doc-reference doc-reference-scomp"><code>scomp#debug</code></a>
:::

Show the contents of a value expression.

The `{% print %}` tag is used to dump the contents of a variable in a HTML safe way. It is very useful for debugging and inspecting variables during template development.

For example:

```django
{% print value %}
```

When value is `"<b\>Hello</b\> world!"` then the example above returns the output:

```html
<pre>
&lt;b&gt;Hello&lt;/b&gt; world!
</pre>
```

It can also print complex values like nested lists and tuples, for which it uses Erlang’s `io_lib:format/2` function.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1300?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1300?language=en>)
