diff --git a/src/app/core/config.py b/src/app/core/config.py
index fad020f..a91d1bf 100644
--- a/src/app/core/config.py
+++ b/src/app/core/config.py
@@ -27,6 +27,7 @@ class Settings(BaseSettings):
# Session management
session_secret: str = "development-session-secret-placeholder"
+ static_asset_version: str = "2024051901"
@field_validator("session_secret")
@classmethod
diff --git a/src/app/web/templates/__init__.py b/src/app/web/templates/__init__.py
index c882903..1700ef3 100644
--- a/src/app/web/templates/__init__.py
+++ b/src/app/web/templates/__init__.py
@@ -1,8 +1,19 @@
"""Template utilities for Jinja2 rendering."""
from pathlib import Path
+
from fastapi.templating import Jinja2Templates
+from app.core.config import get_settings
+
TEMPLATES_DIR = Path(__file__).parent
template_engine = Jinja2Templates(directory=str(TEMPLATES_DIR))
+
+settings = get_settings()
+
+template_engine.env.globals.update(
+ app_name=settings.app_name,
+ static_asset_version=settings.static_asset_version,
+ static_asset_query=f"v={settings.static_asset_version}",
+)
diff --git a/src/app/web/templates/auth.html b/src/app/web/templates/auth.html
index 190f0a3..cda30ee 100644
--- a/src/app/web/templates/auth.html
+++ b/src/app/web/templates/auth.html
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block head_extra %}
-
+
{% endblock %}
{% block content %}
diff --git a/src/app/web/templates/base.html b/src/app/web/templates/base.html
index 7b704cf..e1c8f3c 100644
--- a/src/app/web/templates/base.html
+++ b/src/app/web/templates/base.html
@@ -11,7 +11,7 @@
rel="stylesheet"
/>
-
+
{% block head_extra %}{% endblock %}
@@ -24,7 +24,7 @@
{% include 'partials/footer.html' %}
-
+
{% block body_scripts %}{% endblock %}