Class Mustache

java.lang.Object
com.samskivert.mustache.Mustache

public class Mustache extends Object
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!"
  • Method Details

    • compiler

      public static Mustache.Compiler compiler()
      Returns a compiler that escapes HTML by default and does not use standards mode.