Improved cpl g templating & added custom templating #137

This commit is contained in:
2022-12-05 19:57:27 +01:00
parent d6e3b37f7f
commit d1c93abe2c
34 changed files with 527 additions and 539 deletions

View File

@@ -0,0 +1,16 @@
from cpl_core.utils import String
class SchematicCollection:
_schematics: dict = {}
@classmethod
def register(cls, template: type, schematic: str, aliases: list[str]):
cls._schematics[schematic] = {
"Template": template,
"Aliases": aliases
}
@classmethod
def get_schematics(cls) -> dict:
return cls._schematics