Merge pull request #128 from JoeCqupt/fix-readme-example

fix readme example
This commit is contained in:
Michael Bayne
2021-11-17 07:31:21 -08:00
committed by GitHub
+1 -1
View File
@@ -92,7 +92,7 @@ class Person {
protected int _age; protected int _age;
} }
String tmpl = "{{#persons}}{{name}}: {{age}}{{/persons}}\n"; String tmpl = "{{#persons}}{{name}}: {{age}}\n{{/persons}}";
Mustache.compiler().compile(tmpl).execute(new Object() { Mustache.compiler().compile(tmpl).execute(new Object() {
Object persons = Arrays.asList(new Person("Elvis", 75), new Person("Madonna", 52)); Object persons = Arrays.asList(new Person("Elvis", 75), new Person("Madonna", 52));
}); });