SparkPost / heml

HEML is an open source markup language for building responsive email.
https://heml.io
MIT License
4.33k stars 157 forks source link

There are a number of mail templates in the project, in which there are always some parts that are the same, and I want to have a template model applied to all messages #30

Open amandaXCY opened 6 years ago

amandaXCY commented 6 years ago

There are a number of mail templates in the project, in which there are always some parts that are the same, and I want to have a template model applied to all messages

avigoldman commented 6 years ago

Hey Amanda 👋

I'm not totally sure what you mean. Can you explain it a bit more?

malexandre commented 6 years ago

I'm in the same boat, I'll try to describe my needs. I'm using HEML to build all the mails of my company's app. Some parts of the mails (header, footer, CSS) are always the same. It would be awesome to be able to import "partials" to factorize those parts, and make sure I only need to update in one place when I need to.

karladler commented 6 years ago

Plus one. We are using mustache template engine which offers an include template function. I guess it would be possible to chain mustache and heml.io. I would also like to use external CSS files, that would be awesome. I guess this could also be achieved building some webpack pipeline which includes the css first and then run heml.io

avigoldman commented 6 years ago

Oh, thanks for clarifying everyone. This is similar to issue #6. I'm gonna leave this one open too though since it might be clearer to people not coming from another tool. I'll make sure to keep you all updated!