com.samskivert.mustache
Class Mustache

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

public class Mustache
extends java.lang.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!" 

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

compiler

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



Copyright © 2011. All Rights Reserved.