|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.mustache.Mustache
public class Mustache
Provides Mustache templating services.
Basic usage:
String source = "Hello {{arg}}!";
Template tmpl = Mustache.compiler().compile(source);
Map<String, Object> context = new HashMap<String, Object>();
context.put("arg", "world");
tmpl.execute(context); // returns "Hello world!"
Limitations:
| Nested Class Summary | |
|---|---|
static class |
Mustache.Compiler
An interface to the Mustache compilation process. |
static interface |
Mustache.TemplateLoader
Used to handle partials. |
| Method Summary | |
|---|---|
static Mustache.Compiler |
compiler()
Returns a compiler that escapes HTML by default and does not use standards mode. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Mustache.Compiler compiler()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||