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§
- AccountInactive Context 
- Context used by the account/deactivated.htmlandaccount/locked.htmltemplates
- ApiDocContext 
- Context used by the swagger/doc.htmltemplate
- AppContext
- Context used by the app.htmltemplate
- CompatSsoContext 
- Context used by the sso.htmltemplate
- ConsentContext 
- Context used by the consent.htmltemplate
- DeviceConsent Context 
- Context used by the device_consent.htmltemplate
- DeviceLink Context 
- Context used by the device_link.htmltemplate
- DeviceName Context 
- Context used by the device_name.txttemplate
- EmailRecovery Context 
- Context used by the emails/recovery.{txt,html,subject}templates
- EmailVerification Context 
- Context used by the emails/verification.{txt,html,subject}templates
- EmptyContext 
- An empty context used for composition
- ErrorContext 
- Context used by the error.htmltemplate
- FormPost Context 
- Context used by the form_post.htmltemplate
- FormState 
- The state of a form and its fields
- IndexContext 
- Context used by the index.htmltemplate
- LoginContext 
- Context used by the login.htmltemplate
- NotFoundContext 
- Context used by the not found (404.html) template
- PasswordRegister Context 
- Context used by the password_register.htmltemplate
- PolicyViolation Context 
- Context used by the policy_violation.htmltemplate
- PostAuth Context 
- Context used in login screen, for the post-auth action to do
- RecoveryExpired Context 
- Context used by the pages/recovery/expired.htmltemplate
- RecoveryFinish Context 
- Context used by the pages/recovery/finish.htmltemplate
- RecoveryProgress Context 
- Context used by the pages/recovery/progress.htmltemplate
- RecoveryStart Context 
- Context used by the pages/recovery/start.htmltemplate
- RegisterContext 
- Context used by the register.htmltemplate
- RegisterSteps Display Name Context 
- Context used by the display_name.htmltemplate
- RegisterSteps Email InUse Context 
- Context used by the pages/register/steps/email_in_use.htmltemplate
- RegisterSteps Verify Email Context 
- Context used by the pages/register/steps/verify_email.htmltemplates
- SiteBranding 
- Site branding information.
- SiteFeatures 
- Site features information.
- Templates
- Wrapper around minijinja::Environmenthelping rendering the various templates
- UpstreamExisting Link Context 
- Context used by the pages/upstream_oauth2/{link_mismatch,do_login}.htmltemplates
- UpstreamRegister 
- Context used by the pages/upstream_oauth2/do_register.htmltemplates
- UpstreamSuggest Link 
- Context used by the pages/upstream_oauth2/suggest_link.htmltemplates
- WithCaptcha 
- Context with an optional CAPTCHA configuration in it
- WithCsrf 
- Context with a CSRF token in it
- WithLanguage 
- Context with a specified locale in it
- WithOptional Session 
- Context with an optional user session in it
- WithSession 
- Context with a user session in it
Enums§
- DeviceLink Form Field 
- Form fields on the device link page
- FieldError 
- An error on a form field
- FormError 
- An error on the whole form
- LoginForm Field 
- Fields of the login form
- PostAuth Context Inner 
- Inner context used in login screen. See PostAuthContext.
- RecoveryFinish Form Field 
- Fields of the account recovery finish form
- RecoveryStart Form Field 
- Fields of the account recovery start form
- RegisterForm Field 
- Fields of the registration form
- RegisterSteps Display Name Form Field 
- Fields for the display name form
- RegisterSteps Verify Email Form Field 
- Fields of the email verification form
- TemplateError 
- Failed to render a template
- TemplateLoading Error 
- There was an issue while loading the templates
- UpstreamRegister Form Field 
- User-editeable fields of the upstream account link form
Traits§
- FormField 
- A trait which should be used for form field enums
- SiteConfig Ext 
- Extension trait for SiteConfigto constructSiteBrandingandSiteFeaturesfrom it.
- TemplateContext 
- Helper trait to construct context wrappers
- ToFormState 
- Utility trait to help creating FormStateout of a form
Functions§
- escape_html 
- Escape the given string for use in HTML