flash

Plugin for creating and retrieving flash messages.

class litestar.plugins.flash.FlashConfig[原始碼]

基底類別:object

Configuration for Flash messages.

__init__(template_config: TemplateConfig) None
class litestar.plugins.flash.FlashPlugin[原始碼]

基底類別:InitPlugin

Flash messages Plugin.

__init__(config: FlashConfig)[原始碼]

Initialize the plugin.

參數:

config -- Configuration for flash messages, including the template engine instance.

on_app_init(app_config: AppConfig) AppConfig[原始碼]

Register the message callable on the template engine instance.

參數:

app_config -- The application configuration.

回傳:

The application configuration with the message callable registered.