Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Specials

Specials are constants set by a containing element.

Examples of specials include the error caught by a <try> element, or the attributes and children passed to a function.

<special>

The <special> element is used to retrieve the value of a special.

If the special of the requested name, the Special `{name}` not found error is thrown.

Attributes

  • name (string, optional): The name of the special to retrieve.

Children

If the name attribute has been provided, <special> does not accept any children. The value of the special with the given name is returned.

If the name attribute has not been provided, <special> must have a single child, which is evaluated and converted to a string. This child is used as the name of the special to retrieve.