#
Templates
Boiler-plate pipeline snippets are good candidates to put into a template. For example, transforming systemd journal records is a common task. Placing that into a shared template file avoids repeating yourself while also helping to keep the pipeline config easier to read & reason about.
Templates are declared in the config file. The key under templates ("tfks" in the linked example) acts as a namespace when referencing a template in a stage. All keys in a template are included in the stage's definition. If there is a collision, then the stage's key will take precedence.