java.lang.Object
com.samskivert.mustache.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!"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandles interpreting objects as collections.static classCompiles templates into executable form.static interfaceProvides a means to implement custom logic for variable lookup.static interfaceHandles escaping characters in substituted text.static interfaceHandles converting objects to strings when rendering templates.static interfaceHandles lambdas that are also invoked for inverse sections..static interfaceHandles lambdas.static interfaceHandles loading partial templates.static interfaceReads variables from context objects.static interfaceUsed to visit the tags in a template without executing it. -
Method Summary
Modifier and TypeMethodDescriptionstatic Mustache.Compilercompiler()Returns a compiler that escapes HTML by default and does not use standards mode.
-
Method Details
-
compiler
Returns a compiler that escapes HTML by default and does not use standards mode.
-