From 98866fd19b8a06f1409769102a389b00e0f34ded Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Mon, 2 Mar 2026 22:41:45 +0100 Subject: [PATCH] sass --- partials/structure/layout_start.php | 2 ++ src/App/Config.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/partials/structure/layout_start.php b/partials/structure/layout_start.php index 6954181..b3ec263 100755 --- a/partials/structure/layout_start.php +++ b/partials/structure/layout_start.php @@ -1,6 +1,8 @@ assets()->addStyle('/assets/css/app.css', 'early'); +$app->assets()->addScript('/assets/js/app.js', 'footer', true); ?> diff --git a/src/App/Config.php b/src/App/Config.php index 0d4cc04..93847dd 100755 --- a/src/App/Config.php +++ b/src/App/Config.php @@ -5,10 +5,13 @@ namespace App; class Config { + public string $assetVersion; + public function __construct( public array $db, public bool $dbEnabled = true ) { + $this->assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : ''; } public function primaryUrl(): string