模板:
{{parent.child.0.field}}
上下文
Mustache.Compiler c = Mustache.compiler();
Parent parentObj = new Parent();
Map<String, Object> ctx = Maps.newHashMap();
ctx.put("parent", parentObj);
c.compile(templateHtml).execute(ctx);
例外:
"exception" : "com.samskivert.mustache.MustacheException$Context",
"message" : "Missing context for compound variable 'parent.child.0.field' on line 1. '0' was not found."
任何解决方法,而不将Child的模板或数据类型从Set更改为List?