aboutsummaryrefslogtreecommitdiff
path: root/tools/utils/template-locals.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/utils/template-locals.ts')
-rw-r--r--tools/utils/template-locals.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/utils/template-locals.ts b/tools/utils/template-locals.ts
new file mode 100644
index 0000000..be6b669
--- /dev/null
+++ b/tools/utils/template-locals.ts
@@ -0,0 +1,13 @@
+import {APP_BASE, APP_DEST, APP_ROOT, APP_TITLE, SYSTEM_CONFIG, VERSION} from '../config';
+
+// TODO: Add an interface to register more template locals.
+export function templateLocals() {
+ return {
+ APP_BASE,
+ APP_DEST,
+ APP_ROOT,
+ APP_TITLE,
+ SYSTEM_CONFIG,
+ VERSION
+ };
+}