Extensions work the same like Tools. The big difference between these is that Extensions are not part of the Automad core. The main purpose of an Extension is to provide a flexible way of extending the functionality of Automad. Their markup looks almost the same like a tool's one, just being wrapped in @x():


Or with optional parameters:

@x(extension{ key: value, ... })

And of course, they also work with variables:

@x(extension{ key: @p(var), ... })

Default Extensions

Extensions are very easy to create and should be used for all kind of often reused custom code. To give an idea, how the extension system works, Automad ships with some default extensions:

See also