Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Format
  • Structured data

pprint

Module

mod_base

Pretty print a zotonic value in a template.

Pretty printing a zotonic value in a template is handy during development. It outputs the value of an erlang variable in Html.

Usage:

{{ value | pprint }}

This output is similar to the tag#print tag, only are the values of the pprint filter not wrapped in <pre> tag.

Edit on GitHub

Related documentation

Filters

media_exif_value

Formats EXIF values for display in templates.

Filters

translated_texts

Check all properties of a map, list or resource. Returns a list of all properties that are translated (have a #trans{} record) and their…

Filters

survey_page_options

Check the list of blocks and collect all options for that page.

Filters

format_dispatch_path_element

Format dispatch path element so variables will be more visible.

Filters

format_dispatch_controller_option

Format dispatch controller options.

Filters

upper

Translates the value to upper case.

Filters

date

Formats a date or datetime according to the format specified in the argument.

Filters

language_dir

Return rtl or ltr depening on the direction of the language.

Filters

survey_result_column_values

Used by the survey module to add extra column values to the result editor.

GitHub © 2026 Zotonic