allow using project version in templates

This commit is contained in:
DrMaxNix 2024-02-10 22:47:05 +01:00
parent 2623d2590f
commit fda1c18842
1 changed files with 6 additions and 0 deletions

View File

@ -179,6 +179,12 @@
return $dataset[$value];
}
// constant
if($key === "const"){
if($value === "version") return Project::version();
Error::error(message: "Unknown constant name", data: ["value" => $value]);
}
// unknown key
Error::error(message: "Unknown placeholder key", data: ["key" => $key, "value" => $value]);
};