15 lines
414 B
Go
Raw Normal View History

2019-08-16 05:27:45 +00:00
package main
import (
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components"
)
// HTMLEmailRenderer uses pixy templates to render the HTML for our emails.
type HTMLEmailRenderer struct{}
// Notification renders a notification email.
func (writer *HTMLEmailRenderer) Notification(notification *arn.Notification) string {
return components.NotificationEmail(notification)
}