Skip to main contentCrate modo_macros
Source - t
- Translates a localisation key using the i18n runtime.
- error_handler
- Registers a sync function as the application-wide custom error handler.
- handler
- Registers an async function as an HTTP route handler.
- main
- Generates the application entry point from an async
main function. - module
- Groups handlers under a shared URL prefix and optional middleware.
- template_filter
- Registers a function as a named MiniJinja template filter.
- template_function
- Registers a function as a named MiniJinja template function.
- view
- Derives
IntoResponse and ViewRender for a struct, linking it to a
MiniJinja template.
- Sanitize
- Derives the
modo::sanitize::Sanitize trait for a named-field struct. - Validate
- Derives the
modo::validate::Validate trait for a named-field struct.