Pass Variable as a Helper Parameter in Template


#1

I’m trying to use a template helper that requires two parameters. It works when I hard code values in this this:

{{remaining "100.00" "55.00" }}

But what I’d like to do is use variables from the #each loop like so:

{{remaining {{amount}} {{spent}} }}

Is there a way to pass variables from an #each loop into the helper?


#2

Just omit the curly brackets on amount & spent