From 5a5dd17296e4480ce959097c77584028fa722383 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 21 Oct 2010 20:57:38 +0000 Subject: [PATCH] Javadoc improvements. --- src/main/java/com/samskivert/mustache/Mustache.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/mustache/Mustache.java b/src/main/java/com/samskivert/mustache/Mustache.java index 25a7bec..a6c3aac 100644 --- a/src/main/java/com/samskivert/mustache/Mustache.java +++ b/src/main/java/com/samskivert/mustache/Mustache.java @@ -15,6 +15,12 @@ import java.util.Map; /** * Provides Mustache templating services. + *

Basic usage:

{@code
+ * String source = "Hello {{arg}}!";
+ * Template tmpl = Mustache.compiler().compile(source);
+ * Map context = new HashMap();
+ * context.put("arg", "world");
+ * tmpl.execute(context); // returns "Hello world!" }
*

Limitations: *