mustache.java icon indicating copy to clipboard operation
mustache.java copied to clipboard

Add test cases for scala handler dot notation with classes

Open comp615 opened this issue 8 years ago • 2 comments

Passing in a class as a value for the context works when you use standard notation: {{#classValue}} {{classMember}} {{/classValue}}

However, it throws a notFound/guard error when referenced directly: {{classValue.classMember}}

This added two tests to illustrate the differences, with the dot notation one failing

comp615 avatar Mar 22 '17 19:03 comp615

It looks like because the ScalaObjectHandler wraps Maps I have an issue in the dot notation. Digging into it to see how it can be fixed.

spullara avatar Mar 22 '17 21:03 spullara

I'm tracking this as an issue: https://github.com/spullara/mustache.java/issues/189

spullara avatar Mar 24 '17 18:03 spullara