diff options
Diffstat (limited to 'app/view/templates/layout.php')
-rw-r--r-- | app/view/templates/layout.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index e0b2e1c..b054791 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -12,7 +12,11 @@ <?php } ?> <title><?= $title ?></title> <link rel="stylesheet" href="<?= $css ?>"> - + <script> + // global js vars + const basepath = '/<?= Config::basepath() ?>/'; + const jspath = '<?= Model::jspath() ?>'; + </script> </head> |