public interface MustacheFactory
Modifier and Type | Method and Description |
---|---|
Mustache |
compile(java.io.Reader reader,
java.lang.String name)
Create a mustache given a reader and a name.
|
Mustache |
compile(java.lang.String name)
Create a mustache given a resource name.
|
MustacheVisitor |
createMustacheVisitor()
Creates the visitor for compilation.
|
void |
encode(java.lang.String value,
java.io.Writer writer)
This defines how "encoded" values are encoded.
|
ObjectHandler |
getObjectHandler()
The object handler knows how to transform names into fields and methods.
|
java.io.Reader |
getReader(java.lang.String resourceName)
Given a resource name, construct a reader.
|
java.lang.String |
translate(java.lang.String from)
Converts your arbitrary name to another name.
|
MustacheVisitor createMustacheVisitor()
java.io.Reader getReader(java.lang.String resourceName)
resourceName
- used to find the resourcevoid encode(java.lang.String value, java.io.Writer writer)
value
- the unencoded valuewriter
- where to encode the valueObjectHandler getObjectHandler()
Mustache compile(java.lang.String name)
name
- the name of the resourceMustache compile(java.io.Reader reader, java.lang.String name)
reader
- the readername
- the name of the resourcejava.lang.String translate(java.lang.String from)
from
- the tag to replaceCopyright © 2012. All Rights Reserved.