-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How Can you add helper functions? #5
Comments
I have the same issue? |
Not sure I understand. Could you please provide an example? |
@chaliy Example is using I would recommend using default |
Hello, chaliy! Thanks for plug-in.
... |
If no one's looking at this, might try implementing when I get some time. I'm thinking, along with the my-file.hbs.json file, the helper functions can be defined in my-file.hbs.js |
See PR #9 |
This would be very useful for us. We're trying to use this for working with our templates which are using custom helper functions, and are otherwise blocked by not being able to add the functions in the extension. I see that there is a PR above, but it was never merged and is now out of date. Will this ever be a feature? |
Hey @DanTalash, can you try if my version of the extension works for you? https://marketplace.visualstudio.com/items?itemName=anonimitoraf.handlebars-preview-with-function-support |
Hi @anonimitoraf, I tried switching to your version of the extension. It took a few attempts, but I was able to finally stop the preview throwing errors for our functions. Thank you, this should be useful. I will try using it to see if there are other blocking issues, but my first note would be that the preview doesn't seem to auto-refresh. I need to close and reopen it to see any changes reflected. I would make an issue on your repo, but it doesn't appear that issues are enabled. |
If you need something that works right now, you may want to take a look at this alternative. I tried it and it works quite well. |
No description provided.
The text was updated successfully, but these errors were encountered: