I'm using handlebars and I'm trying to pass in a function, but this function executes on page load instead of onclick, so trying to see what's wrong
So this is the js code
handlebars.registerHelper("randomOperation", () => {
randomFile.functionCall()
})
Now on handlebar side, this is the code:
<a href="/newURL" target="_blank" onclick={{randomOperation}}>