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
Is your feature request related to a problem? Please describe.
When I upload my .zip with an index.html and an index.js, it does not uses the helpers that I made on the index.js.
Describe the solution you'd like
I would like to pass an .js file in the zip with the Handlebars helper that I need in my index.html and them being loaded when compiling.
Describe alternatives you've considered
Right now I had to edit the source of the cloud function, at lib/load_template.ts, to include my custom helpers. This is a really wacky solution because when I will have to edit it again to replicate it in other environments. At least this is a really fast solution.
The other solution woulb be to implement the whole html to pdf myself, which would take some time.
Additional context
No response
The text was updated successfully, but these errors were encountered:
The challenge is the custom helper may need some packages, its runtime may interfere with the pdf generator runtime, etc.
We may need to have two different solutions for simple helpers with no external requirement and helpers relying on external packages.
The former would be as easy as adding an optional HELPERS_PATH config like TEMPLATE_PATH config which keeps the path of a JS file containing bunch of Handlebars.registerHelper calls.
For the latter we may need a mechanism to bootstrap a package.json and run its entry, etc. I hope we can find a simpler solution to avoid unnecessary complexity.
Is your feature request related to a problem? Please describe.
When I upload my .zip with an index.html and an index.js, it does not uses the helpers that I made on the index.js.
Describe the solution you'd like
I would like to pass an .js file in the zip with the Handlebars helper that I need in my index.html and them being loaded when compiling.
Describe alternatives you've considered
Right now I had to edit the source of the cloud function, at lib/load_template.ts, to include my custom helpers. This is a really wacky solution because when I will have to edit it again to replicate it in other environments. At least this is a really fast solution.
The other solution woulb be to implement the whole html to pdf myself, which would take some time.
Additional context
No response
The text was updated successfully, but these errors were encountered: