Macro Libraries

A macro in Jinja is a modular code snippet that enables the definition of a template code block with parameters for reuse across multiple templates.

In Snoweaver, you can use a macro library to systematically organize these macros and subsequently import them into your job configuration.

Properties

Name

The name of the library. It must be unique within a project.

Functions

This property specifies the Functions required for the macro lib.

Macros

This property includes the Jinja codes of all the macros in this library. You can define multiple macros here as long as the code complies with Jinja syntax.

Warning

Defining a Jinja macro using the same name as a system function will override the reference to the system function.

Validator Jinja Template

This property is optional.

Use it to define the Jinja template to validate your macros.