const in appinfo for using in templates

This commit is contained in:
Peter 2024-12-08 00:39:22 +01:00
parent f7d502760c
commit 20a68c5d9b
2 changed files with 7 additions and 0 deletions

View file

@ -386,6 +386,7 @@ def main():
"otherapps": config["otherstates"],
"tags": config["appconfig"]["tags"],
"config": config["appconfig"]["config"],
"const": config['appinfo']['const'],
}
os.chdir(os.path.expanduser("~"))

View file

@ -41,6 +41,12 @@ properties:
additionalProperties: false
type: object
description: A jsonschema defining the configuration that should be given to the application. Defaults will be filled in.
const:
type: object
default: {}
description: Extra constant variables that can be used in templates, centrally defined in this config
additionalProperties:
type: string
templatefiles:
type: array
default: []