Open bentorkington opened 4 years ago
Hi @bentorkington 👋,
I made this package for my own purpose I often use handlebars to make images so it removes boilerplate for me. It could be an optional dependency. If the user provides the content
option without installing handlebars it could throw an error. What do you think of it?
Hi @frinyvonnick 😀
Thanks for making your package available. This could work, another alternative might be to make two packages:
This would achieve the separation of concerns neatly while avoiding the error condition of not having Handlebars installed.
I can't make a separate package easily because of the multiple image generation. Can't figure out how to split this up while keeping this feature 🤔 Do you have an idea?
I'll get a PR in when I have time
Since not all users will necessarily use templating, and those that do can simply pass the output from Handlebars (or potentially some other HTML template library that might better suit their needs), should Handlebars really be a hard dependency for the package?