Developing Extensions
The extension interface provides a convenient way of extending Automad's core functionality with custom PHP code while still offering Automad's template syntax. There are basically two types of template language extensions: generic extensions and custom pipe functions. Check out the source of the MetaTags extension to quickly get started with a simple example.
Generic Extensions
Generic extension allow for developing more complex and customized template functions of any kind having full access to all content and core functions of Automad. They can be used like standard Toolbox functions.
<@ Namespace/Function { key: "Value", ... } @>
Find out more about developing and structuring generic functions here.
Pipe Functions
In contrast to generic extensions, custom pipe functions are specifically meant to modify the content of a variable by using the pipe operator. They can be used in templates like any other pipe function.
@{ variable | Namespace/Function }
You can find more information about developing custom pipe functions here.