| Package | Description |
|---|---|
| com.github.jknack.handlebars | |
| com.github.jknack.handlebars.helper | |
| com.github.jknack.handlebars.internal |
| Modifier and Type | Field and Description |
|---|---|
Handlebars |
Options.handlebars
The
Handlebars object. |
| Modifier and Type | Method and Description |
|---|---|
Handlebars |
Handlebars.deletePartialAfterMerge(boolean deletePartialAfterMerge)
If true, templates will be deleted once applied.
|
Handlebars |
Handlebars.endDelimiter(String endDelimiter)
Set the end delimiter.
|
Handlebars |
Handlebars.handlebarsJsFile(String location)
Set the handlebars.js location used it to compile/precompile template to JavaScript.
|
Handlebars |
Handlebars.infiniteLoops(boolean infiniteLoops)
If true, templates will be able to call him self directly or indirectly.
|
Handlebars |
Handlebars.prettyPrint(boolean prettyPrint)
If true, unnecessary spaces and new lines will be removed from output.
|
<H> Handlebars |
Handlebars.registerHelper(String name,
Helper<H> helper)
Register a helper in the helper registry.
|
<H> Handlebars |
Handlebars.registerHelperMissing(Helper<H> helper)
Register a missing helper in the helper registry.
|
Handlebars |
Handlebars.registerHelpers(Class<?> helperSource)
Register all the helper methods for the given helper source.
|
Handlebars |
Handlebars.registerHelpers(File input)
Register helpers from a JavaScript source.
|
Handlebars |
Handlebars.registerHelpers(Object helperSource)
Register all the helper methods for the given helper source.
|
Handlebars |
Handlebars.registerHelpers(String filename,
InputStream source)
Register helpers from a JavaScript source.
|
Handlebars |
Handlebars.registerHelpers(String filename,
Reader source)
Register helpers from a JavaScript source.
|
Handlebars |
Handlebars.registerHelpers(String filename,
String source)
Register helpers from a JavaScript source.
|
Handlebars |
Handlebars.registerHelpers(URI location)
Register helpers from a JavaScript source.
|
Handlebars |
Handlebars.startDelimiter(String startDelimiter)
Set the start delimiter.
|
Handlebars |
Handlebars.stringParams(boolean stringParams)
If true, missing helper parameters will be resolve to their names.
|
Handlebars |
Handlebars.with(EscapingStrategy escapingStrategy)
Set a new
EscapingStrategy. |
Handlebars |
Handlebars.with(Formatter formatter)
Add a new variable formatter.
|
Handlebars |
Handlebars.with(HelperRegistry registry)
Set the helper registry.
|
Handlebars |
Handlebars.with(ParserFactory parserFactory)
Set a new
ParserFactory. |
Handlebars |
Handlebars.with(TemplateCache cache)
Set a new
TemplateCache. |
Handlebars |
Handlebars.with(TemplateLoader... loader)
Set one or more
TemplateLoader. |
| Modifier and Type | Method and Description |
|---|---|
Parser |
ParserFactory.create(Handlebars handlebars,
String startDelimiter,
String endDelimiter)
Creates a new
Parser. |
| Constructor and Description |
|---|
Options.Builder(Handlebars handlebars,
String helperName,
TagType tagType,
Context context,
Template fn)
Creates a new
Options.Builder. |
Options(Handlebars handlebars,
String helperName,
TagType tagType,
Context context,
Template fn,
Template inverse,
Object[] params,
Map<String,Object> hash)
Creates a new Handlebars
Options. |
| Modifier and Type | Method and Description |
|---|---|
static void |
StringHelpers.register(Handlebars handlebars)
Register all the text helpers.
|
void |
StringHelpers.registerHelper(Handlebars handlebars)
Register the helper in a handlebars instance.
|
| Modifier and Type | Method and Description |
|---|---|
Parser |
HbsParserFactory.create(Handlebars handlebars,
String startDelimiter,
String endDelimiter)
Creates a new
Parser. |
Copyright © 2015. All rights reserved.