docs.rodeo

MDN Web Docs mirror

Using macros

The rari backend is MDN’s build system and provides a macro syntax for common tasks.

Using a macro in content

To use a macro, you enclose the name of the macro in a pair of double-braces (``{{ }} ) along with its parameters, if any:

\`{{macroname(parameter-list)}}` 

A few notes about macro calls:

Macros can be as simple as just inserting a larger block of text or swapping in contents from another part of MDN, or as complex as building an entire index of content by searching through parts of the site, styling the output, and adding links.

You can read up on our most commonly used macros on the Commonly used macros page.

See also

In this article

View on MDN