coalition.content.views

Views for content app.

Functions

theme_css(→ django.http.HttpResponse)

Serve dynamic CSS for a specific theme or the active theme.

active_theme_css(→ django.http.HttpResponse)

Serve CSS for the currently active theme

Module Contents

coalition.content.views.theme_css(request: django.http.HttpRequest, theme_id: int = None) django.http.HttpResponse[source]

Serve dynamic CSS for a specific theme or the active theme.

This view generates CSS on-the-fly based on theme configuration. Useful for including in HTML templates via <link> tags.

Usage:

/theme.css - Serves CSS for the active theme /theme/{id}.css - Serves CSS for a specific theme

coalition.content.views.active_theme_css(request: django.http.HttpRequest) django.http.HttpResponse[source]

Serve CSS for the currently active theme