diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7ae38df --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +mail-templates/* linguist-vendored \ No newline at end of file diff --git a/cmd/preview/main.go b/cmd/preview/main.go index 7e2c88f..cfdbe93 100644 --- a/cmd/preview/main.go +++ b/cmd/preview/main.go @@ -25,7 +25,7 @@ type ReceiptPageData struct { } func serveTemplate(response http.ResponseWriter, request *http.Request) { - tmpl := template.Must(template.ParseFiles("mail/mail-template_order-confirmation.html")) + tmpl := template.Must(template.ParseFiles("mail-templates/order-confirmation.html")) // tmpl := template.Must(w) data := ReceiptPageData{ PageTitle: "Planetposen purchase", diff --git a/mail-templates/order-confirmation.html b/mail-templates/order-confirmation.html new file mode 100644 index 0000000..53fc0bb --- /dev/null +++ b/mail-templates/order-confirmation.html @@ -0,0 +1,208 @@ + + + +
+ + +
+ {{.PageTitle}}+ +
+
+
+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
- {{.PageTitle}}- -
-
-
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||