heml icon indicating copy to clipboard operation
heml copied to clipboard

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

Open amandaXCY opened this issue 7 years ago • 4 comments

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

amandaXCY avatar Nov 06 '17 02:11 amandaXCY

Hey Amanda 👋

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

avigoldman avatar Nov 06 '17 21:11 avigoldman

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.

malexandre avatar Nov 16 '17 10:11 malexandre

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

karladler avatar Nov 20 '17 12:11 karladler

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!

avigoldman avatar Nov 21 '17 02:11 avigoldman