|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MustacheFactory
Factory for creating codes
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
MustacheVisitor createMustacheVisitor()
java.io.Reader getReader(java.lang.String resourceName)
resourceName - used to find the resource
void 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 resource
Mustache compile(java.io.Reader reader,
java.lang.String name)
reader - the readername - the name of the resource
java.lang.String translate(java.lang.String from)
from - the tag to replace
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||