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
  • Render
  • HTML

render

Module

mod_base

Render a template.

Example:

{% include "_email.tpl" name="_name.tpl"|render:%{ id: recipient_id } %}

This renders the template _name.tpl with the argument id.

If the argument is only single id, then it can be passed at once and will be assigned to the id argument. The following is equivalent to the example above:

{% include "_email.tpl" name="_name.tpl"|render:recipient_id %}

Edit on GitHub

Related documentation

Filters

linebreaksbr

Translate ASCII newlines ( \n ) into HTML <br /> elements.

Filters

toc

Filter to derive a Table Of Contents from a HTML body.

Filters

show_media

Convert the image markers in HTML from the Rich Text editor into image tags.

Filters

urlize

Find urls in the given input and make them clickable.

Filters

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

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

truncate_html

Truncate a HTML text to a maximum length.

Modules

mod_bootstrap

Adds support for the Twitter Bootstrap CSS / JavaScript framework. Integration module for Bootstrap assets and helper templates/components.

GitHub © 2026 Zotonic