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:

{% print value %}

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

&lt;b&gt;Hello&lt;/b&gt; world!

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

Edit on GitHub

overrules Tags raw

Referred by


The main resource model, which is the central part of the Zotonic data model. This model provides an interface to all…


Pretty print a zotonic value in a template.


This model gives access to the request variables from within a template.