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 pages

  • print Show the contents of a value expression. →

Related documentation

Filters

mailinglist_delivery_detail

Extract the SMTP diagnostic from legacy {bounce, <<"...">>} and related mailing-run details, including nested errors and missing…

Filters

filter_payment_currency_symbol

Show a payment currency using its preferred symbol or short form.

Filters

humanize_identifier

Convert an underscore-separated identifier to a readable label.

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.

GitHub © 2026 Zotonic