dragonglass/doc/template-vars.txt

43 lines
1.3 KiB
Plaintext
Raw Normal View History

TEMPLATE VARIABLES PROVIDED BY DRAGONGLASS WHEN RENDERING A DOCUMENT
backlinks:
A list of pages that link to the page being rendered. Formatted as a list of dicts with
two elements, "name" and "link", containing the page title and the link to it, respectively.
breadcrumbs:
(Breadcrumbs extension)
A list of pages forming the "breadcrumbs" from a root point to the page being rendered.
Formatted as a list of dicts with two elements, "name" and "link", containing the page title
and the link to it, respectively. The last element always has an empty "link" value.
default_stylesheet:
The filename of the default stylesheet which is generated by dragonglass and added to the
generated pages.
description:
The description of this page. May be empty.
dragonglass_version:
The version number of dragonglass.
lang:
The configured site language, as a RFC5646 language identifier.
python_version:
The version number of Python that's running dragonglass.
site_base:
If defined, contains the site base URL.
site_title:
If defined, contains the site title.
tags:
A list of all tags the page being rendered has, in sorted order.
text:
The text of the page being rendered.
title:
The title of the page being rendered.