【文件属性】:
文件名称:email-template-renderer:使用 jade、ejs 或其他任何方式为 HTML 电子邮件呈现模板
文件大小:9KB
文件格式:ZIP
更新时间:2021-07-20 02:20:23
JavaScript
HTML 电子邮件模板
这是一个小库,可让您轻松地将模板化的 HTML 编译成 HTML 电子邮件客户端所需的一堆热垃圾。 它使一些事情变得更容易:
编写 HTML(通过使用 、 或 )。 有关每个示例的测试,请参阅测试。
内联 CSS(通过使用 )
管理批次模板(通过要求特定的目录结构)
例如,它会变成这样:
//- /my/templates/examples/test.jade
html
head
link ( rel = "stylesheet" , href = "./style.css" )
body
p Hello #{hello}
/* style.css */
p {
color : red;
}
进入这个:
< html >
< head >
</ head >
< body >
< p styl
【文件预览】:
email-template-renderer-master
----.travis.yml(35B)
----README.md(3KB)
----tests()
--------renderer-tests.js(3KB)
--------data()
----.gitignore(19B)
----index.js(4KB)
----package.json(526B)