Files
SkinsPins/app/templates_config.py
Rolf 4ae515bbab Add app version display to login page and profile About card
Version is set via APP_VERSION in .env, defaulting to 1.0.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 09:29:45 +01:00

7 lines
254 B
Python

import os
from fastapi.templating import Jinja2Templates
templates = Jinja2Templates(directory="app/templates")
templates.env.globals["admin_email"] = os.getenv("ADMIN_EMAIL", "")
templates.env.globals["app_version"] = os.getenv("APP_VERSION", "1.0.0")