Expand description
Templates rendering
Modules§
- check
- Helps rendering each template with sample data
Macros§
- register_
templates - 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§
- Account
Inactive Context - Context used by the
account/deactivated.htmlandaccount/locked.htmltemplates - ApiDoc
Context - Context used by the
swagger/doc.htmltemplate - AppContext
- Context used by the
app.htmltemplate - Compat
SsoContext - Context used by the
sso.htmltemplate - Consent
Context - Context used by the
consent.htmltemplate - Device
Consent Context - Context used by the
device_consent.htmltemplate - Device
Link Context - Context used by the
device_link.htmltemplate - Device
Name Context - Context used by the
device_name.txttemplate - Email
Recovery Context - Context used by the
emails/recovery.{txt,html,subject}templates - Email
Verification Context - Context used by the
emails/verification.{txt,html,subject}templates - Empty
Context - An empty context used for composition
- Error
Context - Context used by the
error.htmltemplate - Form
Post Context - Context used by the
form_post.htmltemplate - Form
State - The state of a form and its fields
- Index
Context - Context used by the
index.htmltemplate - Login
Context - Context used by the
login.htmltemplate - NotFound
Context - Context used by the not found (
404.html) template - Password
Register Context - Context used by the
password_register.htmltemplate - Policy
Violation Context - Context used by the
policy_violation.htmltemplate - Post
Auth Context - Context used in login screen, for the post-auth action to do
- Recovery
Expired Context - Context used by the
pages/recovery/expired.htmltemplate - Recovery
Finish Context - Context used by the
pages/recovery/finish.htmltemplate - Recovery
Progress Context - Context used by the
pages/recovery/progress.htmltemplate - Recovery
Start Context - Context used by the
pages/recovery/start.htmltemplate - Register
Context - Context used by the
register.htmltemplate - Register
Steps Display Name Context - Context used by the
display_name.htmltemplate - Register
Steps Email InUse Context - Context used by the
pages/register/steps/email_in_use.htmltemplate - Register
Steps Registration Token Context - The registration token page context
- Register
Steps Verify Email Context - Context used by the
pages/register/steps/verify_email.htmltemplates - Site
Branding - Site branding information.
- Site
Features - Site features information.
- Templates
- Wrapper around
minijinja::Environmenthelping rendering the various templates - Upstream
Existing Link Context - Context used by the
pages/upstream_oauth2/{link_mismatch,do_login}.htmltemplates - Upstream
Register - Context used by the
pages/upstream_oauth2/do_register.htmltemplates - Upstream
Suggest Link - Context used by the
pages/upstream_oauth2/suggest_link.htmltemplates - With
Captcha - Context with an optional CAPTCHA configuration in it
- With
Csrf - Context with a CSRF token in it
- With
Language - Context with a specified locale in it
- With
Optional Session - Context with an optional user session in it
- With
Session - Context with a user session in it
Enums§
- Device
Link Form Field - Form fields on the device link page
- Field
Error - An error on a form field
- Form
Error - An error on the whole form
- Login
Form Field - Fields of the login form
- Post
Auth Context Inner - Inner context used in login screen. See
PostAuthContext. - Recovery
Finish Form Field - Fields of the account recovery finish form
- Recovery
Start Form Field - Fields of the account recovery start form
- Register
Form Field - Fields of the registration form
- Register
Steps Display Name Form Field - Fields for the display name form
- Register
Steps Registration Token Form Field - Fields of the registration token form
- Register
Steps Verify Email Form Field - Fields of the email verification form
- Template
Error - Failed to render a template
- Template
Loading Error - There was an issue while loading the templates
- Upstream
Register Form Field - User-editeable fields of the upstream account link form
Traits§
- Form
Field - A trait which should be used for form field enums
- Site
Config Ext - Extension trait for
SiteConfigto constructSiteBrandingandSiteFeaturesfrom it. - Template
Context - Helper trait to construct context wrappers
- ToForm
State - Utility trait to help creating
FormStateout of a form
Functions§
- escape_
html - Escape the given string for use in HTML