Skip to content

Globals

Globals are used to define data that can be used in any template, regardless of their scope. They are mostly used to inject things like version numbers or project names into your templates. They are defined in .pglobal.yaml (or .pglobal.json) files. The schema of this file is not restricted to any specific schema.

All global files are loaded by ProJor, and they are merged under the key $. This means that you can access any global data by using the $ key in your templates.

An example global file looks like this:

yaml
group: com.example
version: 1.0.2
dev: true