maeser.controllers.training module#
This module contains the controller function to display the training form.
- maeser.controllers.training.controller(app_name: str = 'Maeser', main_logo_chat: str | None = None, favicon: str | None = None) str [source]#
Renders the training form template in HTML format.
- Parameters:
app_name (str) – The name of the application. Defaults to ‘Maeser’.
main_logo_chat (str | None) – The dark version of the main logo. Defaults to None, in which case maeser/data/static/maeser-dark-header.png is used.
favicon (str | None) – The favicon image URL. Defaults to None, in which case maeser/data/static/maeser.png is used.
- Returns:
The rendered training form page.
- Return type:
str