Megacorp Documentation v2.0-beta

Note

Page source: jinja/literal.rst — release 0.1.

This box is written once, in _templates/page_header.rst, and rendered into every page that includes it. page comes from the {% set %} at the top of the including document; release comes from the library's jinja_context.

Jinja That Is Not Jinja

A page documenting Jinja has to show its syntax without it being rendered. {% raw %} does that, exactly as it does in Jinja2:

{{ this_name_is_never_looked_up }}

The text between the two markers is copied through untouched, so an undefined name inside it is never looked up and never reported.

A library that does not set jinja = True needs none of this: its sources are parsed exactly as written, and {{ is an ordinary pair of braces.