Update README.md

fix typos: unbalanced parenthesis. 
before:
{{#names}}{{.}}{/names}}
after:
{{#names}}{{.}}{{/names}}
This commit is contained in:
quentinburley
2016-10-16 18:18:33 +02:00
committed by GitHub
parent b50919924b
commit 02478eccdb
+2 -2
View File
@@ -317,7 +317,7 @@ members. This is particularly useful when iterating over lists.
```java
Mustache.compiler().compile("{{this}}").execute("hello"); // returns: hello
Mustache.compiler().compile("{{#names}}{{this}}{/names}}").execute(new Object() {
Mustache.compiler().compile("{{#names}}{{this}}{{/names}}").execute(new Object() {
List<String> names () { return Arrays.asList("Tom", "Dick", "Harry"); }
});
// result: TomDickHarry
@@ -327,7 +327,7 @@ Note that you can also use the special variable `.` to mean the same thing.
```java
Mustache.compiler().compile("{{.}}").execute("hello"); // returns: hello
Mustache.compiler().compile("{{#names}}{{.}}{/names}}").execute(new Object() {
Mustache.compiler().compile("{{#names}}{{.}}{{/names}}").execute(new Object() {
List<String> names () { return Arrays.asList("Tom", "Dick", "Harry"); }
});
// result: TomDickHarry