heml icon indicating copy to clipboard operation
heml copied to clipboard

Import Heml Components as JS Modules?

Open jmuru opened this issue 6 years ago • 2 comments

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.

jmuru avatar Jun 12 '18 15:06 jmuru

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.

mbkv avatar Nov 30 '18 23:11 mbkv

Ahhhh I will try this out! Thanks!

jmuru avatar Dec 13 '18 17:12 jmuru