mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
466 B
466 B
Theme Hooks
The theme hook allows custom themes to be loaded dynamically by AAs CSS/JS Bundles, as selected by Users.
To register a ThemeHook class you would do the following:
@hooks.register('theme_hook')
def register_darkly_hook():
return ThemeHook()
The ThemeHook
class specifies some parameters/instance variables required.
.. autoclass:: allianceauth.theme.hooks.ThemeHook
:members: __init__
:undoc-members: