Template Function Contexts

Template functions are grouped into different contexts, depending on the phase of the application lifecycle when the function is available and the context data that is provided.

Static Context

Template functions in the static context are available at all times. These functions can be used in any YAML, at any time. The static context also includes the Masterminds Sprig function library.

For a list of all Replicated functions available in the static context, click here.

Config Context

Template functions in the config context are available when rendering an application that has a config screen. At execution time, template functions in this context also can use the static context functions.

For a list of all Replicated functions available in the config context, click here.

License Context

Template functions in the license context have access to the license data, and also the static and config contexts.

For a list of all Replicated functions available in the license context, click here.