com.github.jknack.handlebars.internal
Class ParserFactory
java.lang.Object
com.github.jknack.handlebars.internal.ParserFactory
public class ParserFactory
- extends Object
A simple facade for parser creation. This class was introduced in order to
remove dynamic creation of parboiled classes. In restricted environments like
Google App Engine, Parboiled isn't able to create a dynamic classes.
The hack consist in creating Parboiled classes at build time and replace this
class from final jar with one that if found in the resources directory and it
is added at build-time.
- Since:
- 0.4.1
- Author:
- edgar.espina
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserFactory
public ParserFactory()
create
public static Parser create(Handlebars handlebars,
String filename,
String startDelimiter,
String endDelimiter)
- Creates a new
Parser.
- Parameters:
handlebars - The parser owner.filename - The file's name.startDelimiter - The start delimiter.endDelimiter - The end delimiter.
- Returns:
- A new
Parser.
create
public static Parser create(Handlebars handlebars,
String filename,
Map<String,com.github.jknack.handlebars.internal.Partial> partials,
String startDelimiter,
String endDelimiter,
LinkedList<com.github.jknack.handlebars.internal.Stacktrace> stacktrace)
- Creates a new
Parser.
- Parameters:
handlebars - The parser owner.filename - The file's name.partials - The partials.startDelimiter - The start delimiter.endDelimiter - The end delimiter.stacktrace - The stack-trace.
- Returns:
- A new
Parser.
Copyright © 2012. All Rights Reserved.