Names a template is handed
The names a template, a snippet or a file in snippets/markdown/ reads on their own, before any dot. Statac hands every template page and site, and each of the others only where its entry says.
page
The page being built. In a snippet too, it is the page being built, not a page the call hands the snippet. In a feed’s template, it is the list’s page, and in redirect.html, the page whose redirect_to or redirect_from makes the redirect.
site
The site, the same on every page. On a site in several languages, its values are the ones for the page’s language.
loop
Inside a for loop, how far the loop has got: loop.index, loop.first, loop.last and the rest. In a loop written with recursive, loop(...) goes a level deeper.
self
The blocks of the template being built, by name: self.title() writes the title block again, elsewhere in the template.
super
Inside a block of a template that extends another, super() writes the block from the template this one extends.
caller
Inside a macro called with a call block, caller() writes the contents of the call block.
varargs
Inside a macro, the values a call hands it beyond those the macro names, as a list.
kwargs
Inside a macro, the values a call hands it by names the macro doesn’t have, as a table of names and values.
list
In a feed’s template, the list the feed is published for.
posts
In a feed’s template, the list’s dated posts, newest first, whatever order the list itself has.
feed
In a feed’s template, the URL the feed is published at.
to
In redirect.html, the URL the page redirects to, written in full if the site has a url.
title
In redirect.html, the redirecting page’s title, or if it has none, the name of the page it redirects to. In link.html and image.html, the title written after the URL. In callout.html, the callout’s title. In these three, it is empty if no title is written.
standalone
In a snippet called from the content, true if the call is on a line of its own, and false if it is inside a sentence.
body
In a snippet, the content a call wraps, built into HTML. In a file in snippets/markdown/, what is inside the heading, link, code block or callout, built into HTML: a heading’s or a link’s text, a code block’s code, or a callout’s content. It is HTML, so the template writes it into the page unescaped.
lines
In a snippet, the lines of the content a call wraps. For now, only a call in a template can hand a snippet lines.
level
In heading.html, the heading’s level, from 1 to 6.
id
In heading.html, the heading’s id, and in table.html, the table’s id. In footnote.html, the id of the place in the content that refers to the note.
classes
In heading.html and table.html, the classes written in braces at the end of the heading or the table, separated by spaces. Empty if none are written.
url
In link.html and image.html, the URL as written in the content.
external
In link.html, true if the link leads to another site, which means its host is neither the one in the site’s url nor one in other_hosts.
alt
In image.html, the alt text written in the brackets, or else the one in the image’s own .yaml file.
width
In image.html, the image’s width in pixels. Empty if Statac doesn’t know the image’s size.
height
In image.html, the image’s height in pixels. Empty if Statac doesn’t know the image’s size.
image
In image.html, if the URL names a file in the site, that image, with the same values as an image from page.image. Empty if it doesn’t.
code
In code.html and inline_code.html, the code as written.
language
In code.html, the first word after the opening fence, or if a file’s name is there, the language its name stands for. Empty if the fence names neither, or if the line after the fence starts with a quote.
caption
In code.html, the rest of the opening fence’s line after the language, or the whole line if it starts with a file’s name or a quote. A caption in quotes, such as rust "The example", is handed without them. Empty if there is nothing more.
number
In footnote.html, the note’s number, in the digits 0 to 9.
shown
In footnote.html, the note’s number in the digits of the page’s language, such as ۱ on a Persian page.
note
In footnote.html, the id of the note the marker refers to.
notes
In footnotes.html, every note, each with number, shown, id, back, the id of the first place that refers to it, and body.
label
In footnotes.html, what a screen reader says for the link back to the text: back to the text in English, or else the language’s back_to_the_text translation. Empty in another language whose file has no such line.
kind
In callout.html, the kind of callout: note, tip, important, warning or caution.
head
In table.html, the cells of the heading row, each with its body and its column’s align.
rows
In table.html, every row after the heading row, each a list of cells with their body and their column’s align.
Something unclear or wrong? Open an issue.