Tera Guide

Chester Wyke October 27, 2023 Updated: February 19, 2026 #Misc

Get everything in context

This is useful for debugging. But be warned it includes all the content of the site so on large sites it is VERY big.

{{ __tera_context }}

Example for loop

Source: https://keats.github.io/tera/docs/#functions

{% for i in range(end=5) -%}
{% endfor %}

As String

Source: https://keats.github.io/tera/docs/#as-str

{{ value | as_str }}