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.html
andaccount/locked.html
templates - ApiDoc
Context - Context used by the
swagger/doc.html
template - AppContext
- Context used by the
app.html
template - Compat
SsoContext - Context used by the
sso.html
template - Consent
Context - Context used by the
consent.html
template - Device
Consent Context - Context used by the
device_consent.html
template - Device
Link Context - Context used by the
device_link.html
template - 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.html
template - Form
Post Context - Context used by the
form_post.html
template - Form
State - The state of a form and its fields
- Index
Context - Context used by the
index.html
template - Login
Context - Context used by the
login.html
template - NotFound
Context - Context used by the not found (
404.html
) template - Password
Register Context - Context used by the
password_register.html
template - Policy
Violation Context - Context used by the
policy_violation.html
template - Post
Auth Context - Context used in login and reauth screens, for the post-auth action to do
- Reauth
Context - Context used by the
reauth.html
template - Recovery
Expired Context - Context used by the
pages/recovery/expired.html
template - Recovery
Finish Context - Context used by the
pages/recovery/finish.html
template - Recovery
Progress Context - Context used by the
pages/recovery/progress.html
template - Recovery
Start Context - Context used by the
pages/recovery/start.html
template - Register
Context - Context used by the
register.html
template - Register
Steps Display Name Context - Context used by the
display_name.html
template - Register
Steps Email InUse Context - Context used by the
pages/register/steps/email_in_use.html
template - Register
Steps Verify Email Context - Context used by the
pages/register/steps/verify_email.html
templates - Site
Branding - Site branding information.
- Site
Features - Site features information.
- Templates
- Wrapper around
minijinja::Environment
helping rendering the various templates - Upstream
Existing Link Context - Context used by the
pages/upstream_oauth2/{link_mismatch,do_login}.html
templates - Upstream
Register - Context used by the
pages/upstream_oauth2/do_register.html
templates - Upstream
Suggest Link - Context used by the
pages/upstream_oauth2/suggest_link.html
templates - 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 and reauth screens. See
PostAuthContext
. - Reauth
Form Field - Fields of the reauthentication form
- 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 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
SiteConfig
to constructSiteBranding
andSiteFeatures
from it. - Template
Context - Helper trait to construct context wrappers
- ToForm
State - Utility trait to help creating
FormState
out of a form
Functions§
- escape_
html - Escape the given string for use in HTML