com.sampullara.mustache
Class MustacheBuilder
java.lang.Object
com.sampullara.mustache.MustacheBuilder
- All Implemented Interfaces:
- MustacheJava
public class MustacheBuilder
- extends java.lang.Object
- implements MustacheJava
A pseudo interpreter / compiler. Instead of compiling to Java code, it compiles to a
list of instructions to execute.
User: sam
Date: 5/14/11
Time: 3:52 PM
|
Method Summary |
Mustache |
build(java.io.Reader br,
java.lang.String path)
|
protected java.util.List<Code> |
compile(Mustache m,
java.io.Reader br,
java.lang.String tag,
java.util.concurrent.atomic.AtomicInteger currentLine,
java.lang.String file)
|
Mustache |
parse(java.lang.String template,
java.lang.String path)
|
Mustache |
parseFile(java.lang.String path)
|
void |
setSuperclass(java.lang.String superclass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MustacheBuilder
public MustacheBuilder()
MustacheBuilder
public MustacheBuilder(java.lang.String classpath)
MustacheBuilder
public MustacheBuilder(java.io.File root)
MustacheBuilder
public MustacheBuilder(MustacheContext mc)
setSuperclass
public void setSuperclass(java.lang.String superclass)
parse
public Mustache parse(java.lang.String template,
java.lang.String path)
throws MustacheException
- Specified by:
parse in interface MustacheJava
- Throws:
MustacheException
build
public Mustache build(java.io.Reader br,
java.lang.String path)
throws MustacheException
- Throws:
MustacheException
parseFile
public Mustache parseFile(java.lang.String path)
throws MustacheException
- Specified by:
parseFile in interface MustacheJava
- Throws:
MustacheException
compile
protected java.util.List<Code> compile(Mustache m,
java.io.Reader br,
java.lang.String tag,
java.util.concurrent.atomic.AtomicInteger currentLine,
java.lang.String file)
throws MustacheException
- Throws:
MustacheException
Copyright © 2011. All Rights Reserved.