Fixed {{.}} doc typo.

This commit is contained in:
Michael Bayne
2011-04-13 14:55:25 -07:00
parent 03c02fba96
commit 9d8754b130
+1 -1
View File
@@ -165,7 +165,7 @@ lists.
Note that you can also use the special variable `.` to mean the same thing.
Mustache.compiler().compile("{{.}}").execute("hello"); // returns: hello
Mustache.compiler().compile("{{#names}}{{this}}{/names}}").execute(new Object() {
Mustache.compiler().compile("{{#names}}{{.}}{/names}}").execute(new Object() {
List<String> names () { return Arrays.asList("Tom", "Dick", "Harry"); }
});
// result: TomDickHarry