Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/someok/mjml-thymeleaf-mail-layout
使用 MJML 标记语言配合 Thymeleaf 生成邮件模板
https://github.com/someok/mjml-thymeleaf-mail-layout
mail mjml spring spring-boot template thymeleaf
Last synced: about 1 month ago
JSON representation
使用 MJML 标记语言配合 Thymeleaf 生成邮件模板
- Host: GitHub
- URL: https://github.com/someok/mjml-thymeleaf-mail-layout
- Owner: someok
- License: mit
- Created: 2018-12-11T07:44:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T07:44:13.000Z (about 2 years ago)
- Last Synced: 2023-03-24T08:15:09.310Z (almost 2 years ago)
- Topics: mail, mjml, spring, spring-boot, template, thymeleaf
- Language: HTML
- Size: 988 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mjml-thymeleaf-mail-layout
使用 MJML 标记语言配合 Thymeleaf 生成邮件模板
## 子项目说明
- mjml-template: mjml 模板项目,可以维护模板并编译发布 HTML
- spring-boot-demo: spring boot demo 项目,提供一些单元测试代码用于测试生成的 HTML 模板## mjml-template 项目说明
具体参见 `mjml-template` 目录下的 [readme](mjml-template/README.md)
## spring-boot-demo 项目说明
### 单元测试
> .gradlew test
测试完成后会生成若干 HTML 文件,位置是: `${user.homt}/temp/mail_html/`,方便直接在浏览器中查看。
## Demo
![样例展示](snapshot/mail-demo.png "样例图片")