pass function as argument to another function
-
How can I pass a function return value as argument to another function?
function worldFn(){ return "world" } function helloFn(a) { return "hello " + a }
<div>{{ helloFn worldFn }}</div>
returns hello undefined
-
I gues you search for this?
https://handlebarsjs.com/guide/expressions.html#subexpressions
-
Thank you Sir! That's exactly what I needed