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

Import Heml Components as JS Modules? #74

Open jmuru opened 6 years ago

jmuru commented 6 years ago

Is there support for importing heml components i.e. (Container, Row) as individual JS modules after installing the heml Package? If not is there another way I can accomplish this, I'm trying to make a UI lib for email templates and would love to use heml layouts.

mbkv commented 5 years ago

I'm trying to make a UI lib for email templates and would love to use heml layouts

I did something similar. The way I solved this is by including handlebars and handlebars-layouts. And simply treat heml files as both a mix of handlebars and heml

I even set up chokidar to watch all of the files and recompile if necessary. It's not too hard, but it is time consuming.

jmuru commented 5 years ago

Ahhhh I will try this out! Thanks!