GameServerWeb.Plugs.LoadTheme (game_server_web v1.0.935)

Copy Markdown

Plug that assigns the currently configured Theme provider's theme map as conn.assigns.theme so templates and LiveViews can render config-driven values like title, logo, banner and a css path (external stylesheet).

The active theme provider module is configured through: Application.get_env(:game_server_web, :theme_module) || GameServer.Theme.JSONConfig

Summary

Functions

call(conn, opts)

init(opts)