{false}The constant FALSE: its content is skipped and its @else@ part renders instead. Conditions
{feature}Renders its content while a feature flag is on for this visitor, and its else half while it is off. Users and access
{field}Runs a SQL query on the application database and prints the single value it answers. Database
{file}Writes its rendered content to a file under DATA/ instead of to the page. Files
{files}Scans a directory and iterates its entries, with path, file, ext, item and dir for each. Files
{flag}Replaces every value of a sequence with 1 or 0: whether it belongs to a sequence type. Sequences
{flash}The flash messages of this request - set with padFlash on the page before - one occurrence each. Forms and security
{flush}Sends the page rendered so far to the browser at once, so it can load the stylesheets while a slow part below renders. Output control
{foo}A built-in demo tag that answers a fixed line, there to show how the type prefixes resolve a name. Output control
{form}A form that posts back to the page, carrying the session's CSRF token and its own name, its fields refilling when it came back. Forms and security
{get}Fetches another page of the application over HTTP, as a second request, and inserts its output. Pages and execution
{gravatar}Writes the Gravatar picture of an e-mail address as an img - only a hash of the address leaves the page - or a local avatar instead. Pictures and media
{guest}Renders its content when nobody is logged in, and its else half for a user. Users and access
H
1 tag
{highlight}Colours source code on the server - PAD, PHP, HTML, CSS, JavaScript, JSON, YAML, SQL or shell - with optional line numbers and marked lines. Text and formatting
I
8 tags
{icon}Writes an interface icon from PAD's own set of 79 as inline SVG, drawn in the colour of the text around it. Pictures and media
{identicon}Draws a GitHub-style identicon as inline SVG - a symmetric 5 by 5 pattern and a colour from a hash of the value. Pictures and media
{if}Renders its content only when a condition holds, with elseif and else branches. Conditions
{ifchanged}Renders its content when a value differs from the previous row of the loop around it - a heading per group. Conditions
{ignore}Keeps PAD from reading the braces in its content as tags - for inline JavaScript, CSS, JSON and code samples. Output control
{img}Writes a picture of the application's www directory as a thumbnail of the size the page shows it at, resized once with GD. Pictures and media
{input}A form field with its label that refills from what its form sent and shows the error validation found for it. Forms and security
J
1 tag
{jsonview}A JSON value or a PHP array as a tree that folds open and shut, coloured by type. Widgets
K
1 tag
{keep}Keeps only the values of a sequence that belong to a sequence type. Sequences
L
2 tags
{live}A region of the page that re-renders on the server when something in it is clicked, submitted or changed, and swaps itself in. Pages and execution
{lorem}Placeholder text - Lorem ipsum and Latin words - in words, sentences or paragraphs, the same text for the same seed. Text and formatting
M
7 tags
{macro}A template function: declared parameters, given in order or by name, read as fields inside its body. Layouts and components
{mail}Renders a template, or its own content, to an e-mail with an HTML and a text part, and sends it. Network and mail
{make}Replaces every value of a sequence with what a sequence type makes of it. Sequences
{map}Draws a choropleth map as inline SVG - every country coloured by a value of its row - of the world or one of its regions. Charts and codes
{pdf}Sends what its content renders as a PDF instead of the page - a writer in plain PHP, the standard fonts, no library. Pictures and media
{placeholder}Draws a grey image placeholder as inline SVG - crossing lines and the size or a text in the middle. Pictures and media
{poll}A vote among a few answers, once per visitor, then the results as bars with percentages. Widgets
{progress}Writes an accessible progress bar - the native progress element, styled, with its label and percentage - or a row of step dots. Pictures and media
{pull}Iterates a stored sequence, optionally through plays and actions. Sequences
{push}Renders its content and adds it to a named stack, for a stack tag elsewhere in the page to print. Layouts and components
Q
1 tag
{qr}Draws a QR code as inline SVG, encoded on the server - no image library, no remote service. Charts and codes
R
8 tags
{rating}Draws a score as stars or hearts in inline SVG - whole ones filled, a part of one clipped - and says it in words. Pictures and media
{reactData}Writes the mount point of a React component, its data from a provider in _providers/ as JSON in an attribute. Output control
{record}Runs a SQL query on the application database and renders its content with the first row's columns as fields. Database
{recurse}Inside a {tree}: renders the tree's body once more for the children of the current row. Loops and trees
{redirect}Sends the browser to another page or address with a 302 and ends the request. Navigation
{remove}Removes the values of a sequence that belong to a sequence type - the inverse of keep. Sequences
{restart}Abandons the page being built and renders another page in its place, in the same request. Pages and execution
{resume}Transforms the sequence pushed last, in place, through an action or a play. Sequences
S
12 tags
{sandbox}Runs its content as PAD source in an isolated pass that cannot see or leave behind anything of the page. Pages and execution
{sequence}Generates a range, a list or one of 80 mathematical sequences, and iterates its values. Sequences
{set}Assigns one or more variables, as globals that outlive the level the tag stands in. Variables and stores
{trans}Writes the text a key has in the _lang/ catalog of the request's locale, with plural forms and substitutions. Output control
{tree}Renders a tree of rows: its body for every row, and {recurse} renders it again for the row's children. Loops and trees
{true}The constant TRUE: its content renders once, as a level of its own. Conditions
U
1 tag
{until}Renders its content again and again until a condition becomes true. Loops and trees
V
3 tags
{validator}The browser's checker of the validation rules as one inline script, for a form a component draws. Forms and security
{video}Shows a YouTube or Vimeo video as its poster with a play button, loading the player only when pressed - or a video file as a video element. Pictures and media
{vite}Links the scripts and stylesheets of a Vite build by the name of their source - or the dev server while it runs. Output control
W
1 tag
{while}Renders its content again and again for as long as a condition holds. Loops and trees