Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Localised a = Localised {
- locDefault :: (Locale, a)
- locOther :: Map Locale a
- type TemplateBranding = Text -> Text
- data UserTemplates = UserTemplates {
- activationSms :: ActivationSmsTemplate
- activationCall :: ActivationCallTemplate
- verificationEmail :: VerificationEmailTemplate
- activationEmail :: ActivationEmailTemplate
- activationEmailUpdate :: ActivationEmailTemplate
- teamActivationEmail :: TeamActivationEmailTemplate
- passwordResetSms :: PasswordResetSmsTemplate
- passwordResetEmail :: PasswordResetEmailTemplate
- loginSms :: LoginSmsTemplate
- loginCall :: LoginCallTemplate
- deletionSms :: DeletionSmsTemplate
- deletionEmail :: DeletionEmailTemplate
- upgradePersonalToTeamEmail :: UpgradePersonalToTeamEmailTemplate
- newClientEmail :: NewClientEmailTemplate
- verificationLoginEmail :: SecondFactorVerificationEmailTemplate
- verificationScimTokenEmail :: SecondFactorVerificationEmailTemplate
- verificationTeamDeletionEmail :: SecondFactorVerificationEmailTemplate
- data ActivationSmsTemplate = ActivationSmsTemplate {}
- data ActivationCallTemplate = ActivationCallTemplate {}
- data VerificationEmailTemplate = VerificationEmailTemplate {}
- data ActivationEmailTemplate = ActivationEmailTemplate {}
- data TeamActivationEmailTemplate = TeamActivationEmailTemplate {}
- data PasswordResetSmsTemplate = PasswordResetSmsTemplate {}
- data PasswordResetEmailTemplate = PasswordResetEmailTemplate {}
- data LoginSmsTemplate = LoginSmsTemplate {}
- data LoginCallTemplate = LoginCallTemplate {}
- data DeletionSmsTemplate = DeletionSmsTemplate {}
- data DeletionEmailTemplate = DeletionEmailTemplate {}
- data UpgradePersonalToTeamEmailTemplate = UpgradePersonalToTeamEmailTemplate {}
- data NewClientEmailTemplate = NewClientEmailTemplate {}
- data SecondFactorVerificationEmailTemplate = SecondFactorVerificationEmailTemplate {}
- data InvitationEmailTemplate = InvitationEmailTemplate {}
- data CreatorWelcomeEmailTemplate = CreatorWelcomeEmailTemplate {}
- data MemberWelcomeEmailTemplate = MemberWelcomeEmailTemplate {}
- data TeamTemplates = TeamTemplates {}
- forLocale :: Maybe Locale -> Localised a -> (Locale, a)
- renderTextWithBranding :: Template -> (Text -> Text) -> TemplateBranding -> Text
- renderHtmlWithBranding :: Template -> (Text -> Text) -> TemplateBranding -> Text
- data Template
Documentation
Localised templates.
type TemplateBranding = Text -> Text Source #
See genTemplateBranding
.
data UserTemplates Source #
data ActivationSmsTemplate Source #
data LoginSmsTemplate Source #
data DeletionSmsTemplate Source #
data DeletionEmailTemplate Source #
data TeamTemplates Source #
:: Maybe Locale |
|
-> Localised a | The |
-> (Locale, a) | Pair of the effectively chosen locale and the associated value. |
Lookup a localised item from a Localised
structure.
renderTextWithBranding :: Template -> (Text -> Text) -> TemplateBranding -> Text Source #
Uses a replace and a branding function, to replaces all placeholders from the given template to produce a Text. To be used on plain text templates
renderHtmlWithBranding :: Template -> (Text -> Text) -> TemplateBranding -> Text Source #
Uses a replace and a branding function to replace all placeholders from the given template to produce a Text. To be used on HTML templates
Re-exports
A representation of a Text
template, supporting efficient
rendering.