This commit is contained in:
2019-08-31 11:55:01 +09:00
parent 3a3a89ef0e
commit 453f6cdbb0
6 changed files with 50 additions and 52 deletions

View File

@ -0,0 +1,14 @@
package htmlemail
import (
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components"
)
// Renderer uses pixy templates to render the HTML for our emails.
type Renderer struct{}
// Notification renders a notification email.
func (writer *Renderer) Notification(notification *arn.Notification) string {
return components.NotificationEmail(notification)
}