Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Options.params array omits the first parameter in a Helper #1076

Open
dpeterson-git opened this issue Sep 11, 2023 · 0 comments
Open

The Options.params array omits the first parameter in a Helper #1076

dpeterson-git opened this issue Sep 11, 2023 · 0 comments

Comments

@dpeterson-git
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant