We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
How to access map with enum as key in handlebars.java?
We have: public enum Status { NEW, DONE, CLOSED }
Model: Map<Status, Long> statuses = new HashMap(); statuses.put(Status.CLOSED, 1); statuses.put(Status.DONE, 2); statuses.put(Status.NEW, 3);
For example {{statuses.NEW}} doesn't work.
The text was updated successfully, but these errors were encountered:
yea, I experienced the same last week and isn't possible and not sure how to fix it :(
Sorry, something went wrong.
Changing Map (Statuses, Integer) to Map (String, Integer) is simple workaround. But it could be nice to support enum values out of the box.
access map with enum key #237
3b6ac90
fixed in 1.1.3-SNAPSHOT IF and ONLY IF you use an: EnumMap
1.1.3-SNAPSHOT
EnumMap
No branches or pull requests
Hi,
How to access map with enum as key in handlebars.java?
We have:
public enum Status {
NEW, DONE, CLOSED
}
Model:
Map<Status, Long> statuses = new HashMap();
statuses.put(Status.CLOSED, 1);
statuses.put(Status.DONE, 2);
statuses.put(Status.NEW, 3);
For example {{statuses.NEW}} doesn't work.
The text was updated successfully, but these errors were encountered: