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.parentScopeResolution(boolean parentScopeResolution)
Given:
|
Handlebars |
Handlebars.preEvaluatePartialBlocks(boolean preEvaluatePartialBlocks)
If true, partial blocks will implicitly be evaluated before the partials will actually
be executed.
|
Handlebars |
Handlebars.prettyPrint(boolean prettyPrint)
If true, unnecessary spaces and new lines will be removed from output.
|
Handlebars |
Handlebars.registerDecorator(String name,
Decorator decorator) |
<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.setCharset(Charset charset) |
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... chain)
Set a new
EscapingStrategy . |
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 |
---|
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,
List<String> blockParams)
Creates a new Handlebars
Options . |
Options(Handlebars handlebars,
String helperName,
TagType tagType,
Context context,
Template fn,
Template inverse,
Object[] params,
Map<String,Object> hash,
List<String> blockParams,
Writer writer)
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 . |
Constructor and Description |
---|
BlockDecorator(Handlebars handlebars,
String name,
boolean inverted,
List<Param> params,
Map<String,Param> hash,
List<String> blockParams,
boolean root)
Creates a new
BlockDecorator . |
PartialBlockForwardingTemplate(Template parent,
Template block,
Template parentPartialBlock,
Template callee,
Handlebars handlebars)
Constructs a PartialBlockForwardingTemplate.
|
VarDecorator(Handlebars handlebars,
String name,
TagType type,
List<Param> params,
Map<String,Param> hash,
boolean root)
Creates a new
VarDecorator . |
Copyright © 2021. All rights reserved.