You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
Thanks for making your package available. This could work, another alternative might be to make two packages:
one package with no Handlebars dependency which only performs image generation
another package which is a wrapper for package 1 and uses Handlebars. Perhaps other templating engines like Nunjucks or Liquid would eventually get similar wrappers.
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?
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?
The text was updated successfully, but these errors were encountered: