public enum HandlebarsCompiler extends java.lang.Enum<HandlebarsCompiler>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
addResolver(com.github.jknack.handlebars.ValueResolver resolver) |
java.lang.String |
compile(java.lang.String template,
java.util.Map<java.lang.String,?> variables) |
void |
registerHelper(java.lang.Class<?> helperSource) |
void |
registerHelper(java.lang.Object helperSource) |
static HandlebarsCompiler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HandlebarsCompiler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandlebarsCompiler INSTANCE
public static HandlebarsCompiler[] values()
for (HandlebarsCompiler c : HandlebarsCompiler.values()) System.out.println(c);
public static HandlebarsCompiler valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String compile(java.lang.String template, java.util.Map<java.lang.String,?> variables) throws java.io.IOException
java.io.IOException
public void addResolver(com.github.jknack.handlebars.ValueResolver resolver)
public void registerHelper(java.lang.Class<?> helperSource)
public void registerHelper(java.lang.Object helperSource)
Copyright © 2014. All Rights Reserved.