I need to pass a variable in a helper inside the innerHTML, help please #1919
Unanswered
ArturMota19
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'm not sure what you are trying to do. At what step do you compile the template with Handlebars? Can you give me a complete example, including the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have this code and I need to pass the ${nameMatch} to be compared in this helper
However, when I pass it with quotes, it literally sends "${nameMatch}", and not the value of the nameMatch variable.
And if I remove the quotes, it says I'm trying to pass an invalid type to the helper.
How could I resolve this? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions