Crate mas_templates
source ·Expand description
Templates rendering
Modules§
- Helps rendering each template with sample data
Macros§
- Macro that helps generating helper function that renders a specific template with a strongly-typed context. It also register the template in a static array to help detecting missing templates at startup time.
Structs§
- Context used by the
swagger/doc.html
template - Context used by the
app.html
template - Context used by the
sso.html
template - Context used by the
consent.html
template - Context used by the
device_consent.html
template - Context used by the
device_link.html
template - Context used by the
pages/account/verify.html
templates - Context used by the
emails/recovery.{txt,html,subject}
templates - Context used by the
emails/verification.{txt,html,subject}
templates - Context used by the
pages/account/verify.html
templates - An empty context used for composition
- Context used by the
error.html
template - Context used by the
form_post.html
template - The state of a form and its fields
- Context used by the
index.html
template - Context used by the
login.html
template - Context used by the not found (
404.html
) template - Context used by the
policy_violation.html
template - Context used in login and reauth screens, for the post-auth action to do
- Context used by the
reauth.html
template - Context used by the
pages/recovery/expired.html
template - Context used by the
pages/recovery/finish.html
template - Context used by the
pages/recovery/progress.html
template - Context used by the
pages/recovery/start.html
template - Context used by the
register.html
template - Site branding information.
- Site features information.
- Wrapper around
minijinja::Environment
helping rendering the various templates - Context used by the
pages/upstream_oauth2/{link_mismatch,do_login}.html
templates - Context used by the
pages/upstream_oauth2/do_register.html
templates - Context used by the
pages/upstream_oauth2/suggest_link.html
templates - Context with an optional CAPTCHA configuration in it
- Context with a CSRF token in it
- Context with a specified locale in it
- Context with an optional user session in it
- Context with a user session in it
Enums§
- Form fields on the device link page
- An error on a form field
- An error on the whole form
- Fields of the login form
- Inner context used in login and reauth screens. See
PostAuthContext
. - Fields of the reauthentication form
- Fields of the account recovery finish form
- Fields of the account recovery start form
- Fields of the registration form
- Failed to render a template
- There was an issue while loading the templates
- User-editeable fields of the upstream account link form
Traits§
- A trait which should be used for form field enums
- Helper trait to construct context wrappers
- Utility trait to help creating
FormState
out of a form
Functions§
- Escape the given string for use in HTML