com.mchange.feedletter.default.email.removalNotification-html-untemplate.scala Maven / Gradle / Ivy
// DO NOT HAND EDIT -- Autogenerated from 'removalNotification.html.untemplate' at 2024-01-22T21:31:23.510747Z
package com.mchange.feedletter.default.email
import java.io.{Writer,StringWriter}
import scala.collection.{immutable,mutable}
import com.mchange.feedletter.*
import com.mchange.feedletter.style.*
val Untemplate_removalNotification_html = new untemplate.Untemplate[RemovalNotificationInfo,Nothing]:
val UntemplateFunction : untemplate.Untemplate[RemovalNotificationInfo,Nothing] = this
val UntemplateName : String = "removalNotification_html"
val UntemplatePackage : String = "com.mchange.feedletter.default.email"
val UntemplateInputName : String = "info"
val UntemplateInputTypeDeclared : String = "RemovalNotificationInfo"
val UntemplateInputTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[RemovalNotificationInfo] )
val UntemplateInputDefaultArgument : Option[RemovalNotificationInfo] = (None : Option[RemovalNotificationInfo])
val UntemplateOutputMetadataTypeDeclared : String = "Nothing"
val UntemplateOutputMetadataTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[Nothing] )
val UntemplateHeaderNote : String = ""
val UntemplateAttributes : immutable.Map[String,Any] = immutable.Map.empty
def apply(info : RemovalNotificationInfo) : untemplate.Result[Nothing] =
val writer : StringWriter = new StringWriter(9360)
val attrs : immutable.Map[String,Any] = UntemplateAttributes
var mbMetadata : Option[Nothing] = None
var outputTransformer : Function1[untemplate.Result[Nothing],untemplate.Result[Nothing]] = identity
val displayName =
val narrowed = info.subscriptionManager.narrowDestinationOrThrow( info.destination )
info.subscriptionManager.displayShort( narrowed )
end displayName
val block0 = new Function0[String]:
def apply() : String =
"\n\n \n \n \n \n Unsubscribed from " + ( info.subscribableName ) +
" \n \n \n \n Dear " + ( displayName ) +
",
\n\n You have been unsubscribed from the mailing list " + ( info.subscribableName ) +
".\n \n
😢
\n\n If you were removed in error, or if you ever change your mind, please click here to resubscribe.\n\n
Au revoir,
\n " + ( info.subscribableName ) +
"\n
\n \n\n\n\n"
writer.write(block0())
outputTransformer( untemplate.Result( mbMetadata, writer.toString ) )
end apply
end Untemplate_removalNotification_html
def removalNotification_html(info : RemovalNotificationInfo) : untemplate.Result[Nothing] = Untemplate_removalNotification_html( info )
© 2015 - 2025 Weber Informatics LLC | Privacy Policy