Embed HaXtatic tags anywhere in source contents, templates, snippets
or *.haxproj files with a simple notation: {Prefix|Name|}
or
{Prefix|Name: Args|}
.
Example: {P|date|}
outputs in-place the currently set page date (using the
built-in fallback date-time format since none was specified in the tag) when it is processed: 2016-12-18.
Available "prefixes" (or haxTag types) are (in order of simplicity) T, B, P and X:
{T| .. |}
tags directly output named textual contents defined in a *.haxproj file.
{P| .. |}
tags refer to the current page context during rendering; outputting pre-computed values (page title, page date, etc.), custom per-page variables, or correct relative paths from the current location.
A {B| .. |}
tag outputs, for the (named or current) Blok, the value (as set in a *.haxproj |B| directive) of the requested property.
An {X| .. |}
tag invokes a programmatic output renderer (aka.
X-renderer).
<<loop>>
farewell message) the entire generating processUnnecessary knowledge 99% of the time until running into that one odd edge-case where it'll help: a haXtag will be processed during one of two possible (multi-pass each) "stages":
Early stage by default: T-tags, named B-tags, most X-tags
Page stage by default: P-tags, unnamed B-tags, a few X-tags
Recall that as a general rule, a directly embedded unprocessable inner tag prevents processing of its outer tag(s). This reality both allows for the staged processing to function smoothly (usually/mostly) in the first place, and also suggests keeping in mind that Early-capable haXtags in non-page project files may still only process at page time.