dragonglass/doc/template-vars.txt

34 lines
884 B
Plaintext

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.
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.
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.