Truth in exampling.

This commit is contained in:
Michael Bayne
2013-02-15 16:40:59 -08:00
parent acbddd07a2
commit aa56e72513
+1
View File
@@ -142,6 +142,7 @@ the standard Mustache documentation on lambdas:
String tmpl = "{{#bold}}{{name}} is awesome.{{/bold}}";
Mustache.compiler().compile(tmpl).execute(new Object() {
String name = "Willy";
Mustache.Lambda bold = new Mustache.Lambda() {
public void execute (Template.Fragment frag, Writer out) throws IOException {
out.write("<b>");