diff options
author | Alex Tatiyants <atatiyan@gmail.com> | 2016-01-03 17:17:48 -0800 |
---|---|---|
committer | Alex Tatiyants <atatiyan@gmail.com> | 2016-01-03 17:17:48 -0800 |
commit | 5310ac7d8eb1838a6297117bc7f9fca70291f46a (patch) | |
tree | 28f54b184cb85f04e6d6720dd03258f3728fedde /tools/utils/template-locals.ts |
initial commit
Diffstat (limited to 'tools/utils/template-locals.ts')
-rw-r--r-- | tools/utils/template-locals.ts | 13 |
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 + }; +} |