handlebars.java
handlebars.java copied to clipboard
The Options.params array omits the first parameter in a Helper
The last argument to a Helper function is an Options object. That object has a params array that holds the arguments to a helper's invocation.
In a template like {{add 5 37}} this array only has one item, namely:
[
Integer (37)
]
The 5 does not appear in the params array, even though it is an argument to the Helper.
Please consider adding the first parameter to the params array, or consider an adding an additional array to the Options object holding the full set of parameters to the Helper function.