diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d98352b Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 4513c3d..edf5b1e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,36 @@ -# hermes -Golang package that generates clean, responsive HTML e-mails for sending transactional mail +# Hermes + +Hermes is the Go port the great [mailgen](https://github.com/eladnava/mailgen) engine for Node.js. +It's a package that generates clean, responsive HTML e-mails for sending transactional mail (welcome email, email validity checking, reset password and so on). + +# Demo + +TODO + +# Usage + +First install the package: + +``` +go get -u github.com/matcornic/hermes +``` + +TODO + +## Contributing + +Thanks so much for wanting to help! We really appreciate it. + +* Have an idea for a new feature? +* Want to add a new built-in theme? + +Excellent! You've come to the right place. + +1. If you find a bug or wish to suggest a new feature, please create an issue first +2. Make sure your code & comment conventions are in-line with the project's style +3. Make your commits and PRs as tiny as possible - one feature or bugfix at a time +4. Write detailed commit messages, in-line with the project's commit naming conventions + +## License + +Apache 2.0 diff --git a/default.go b/default.go new file mode 100644 index 0000000..d112606 --- /dev/null +++ b/default.go @@ -0,0 +1,366 @@ +package hermes + +type DefaultTheme struct { + name string +} + +func (dt *DefaultTheme) Name() string { + return "default" +} + +func (dt *DefaultTheme) HtmlTemplate() string { + return ` + + +
+ + + + + +
+
|
+
+
|
+