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

Passing one parameter by position #35

Open
pavel-chumakou opened this issue Oct 22, 2015 · 1 comment
Open

Passing one parameter by position #35

pavel-chumakou opened this issue Oct 22, 2015 · 1 comment

Comments

@pavel-chumakou
Copy link

Please add to the documentation that you can't pass one parameter by position.
I spent more than one hour trying to understand why my template produce NPE :)

Map<String, Source> sources = .....
Rythm.render("@args Map<String, Source> sources  .....",  sources);  // won't work
@greenlaw110
Copy link
Collaborator

You can pass one parameter by position if your sources type is NOT a map. Passing one parameter of Map type means you want to pass parameters by name which is documented at http://rythmengine.org/doc/developer_guide.md#by_name

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

2 participants