Package | Description |
---|---|
com.github.jknack.handlebars | |
com.github.jknack.handlebars.cache | |
com.github.jknack.handlebars.helper | |
com.github.jknack.handlebars.internal |
Modifier and Type | Field and Description |
---|---|
static Template |
Template.EMPTY
An empty template implementation.
|
Template |
Options.fn
The current template.
|
Template |
Options.inverse
The current inverse template.
|
Modifier and Type | Method and Description |
---|---|
Template |
Handlebars.compile(String location)
Compile the resource located at the given uri.
|
Template |
Handlebars.compile(String location,
String startDelimiter,
String endDelimiter)
Compile the resource located at the given uri.
|
Template |
Handlebars.compile(TemplateSource source)
Compile a handlebars template.
|
Template |
Handlebars.compile(TemplateSource source,
String startDelimiter,
String endDelimiter)
Compile a handlebars template.
|
Template |
Handlebars.compileInline(String input)
Compile a handlebars template.
|
Template |
Handlebars.compileInline(String input,
String startDelimiter,
String endDelimiter)
Compile a handlebars template.
|
Template |
Parser.parse(TemplateSource source)
Parse a handlebars input and return a
Template . |
Template |
Options.partial(String path)
Return a previously registered partial in the current execution context.
|
Modifier and Type | Method and Description |
---|---|
O |
Lambda.apply(C context,
Template template)
Apply the lambda.
|
CharSequence |
Options.apply(Template template)
Apply the given template to the default context.
|
CharSequence |
Options.apply(Template template,
Context context)
Apply the given template to the provided context.
|
CharSequence |
Options.apply(Template template,
Context context,
List<Object> blockParams)
Apply the given template to the provided context.
|
CharSequence |
Options.apply(Template template,
Object context)
Apply the given template to the provided context.
|
CharSequence |
Options.apply(Template template,
Object context,
List<Object> blockParams)
Apply the given template to the provided context.
|
void |
Decorator.apply(Template fn,
Options options)
Decorate a template with metadata.
|
void |
Options.partial(String path,
Template partial)
Store a partial in the current execution context.
|
Options.Builder |
Options.Builder.setInverse(Template inverse)
Set the inverse template.
|
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 |
---|---|
Template |
TemplateCache.get(TemplateSource source,
Parser parser)
Return the value to which this cache maps the specified key.
|
Template |
NullTemplateCache.get(TemplateSource source,
Parser parser) |
Template |
HighConcurrencyTemplateCache.get(TemplateSource source,
Parser parser) |
Template |
ConcurrentMapTemplateCache.get(TemplateSource source,
Parser parser) |
Constructor and Description |
---|
ConcurrentMapTemplateCache(ConcurrentMap<TemplateSource,org.apache.commons.lang3.tuple.Pair<TemplateSource,Template>> cache)
Creates a new ConcurrentMapTemplateCache.
|
HighConcurrencyTemplateCache(ConcurrentMap<TemplateSource,Future<org.apache.commons.lang3.tuple.Pair<TemplateSource,Template>>> cache)
Creates a new HighConcurrencyTemplateCache.
|
Modifier and Type | Method and Description |
---|---|
void |
InlineDecorator.apply(Template fn,
Options options) |
Modifier and Type | Class and Description |
---|---|
class |
BlockDecorator
A block decorator implementation.
|
class |
PartialBlockForwardingTemplate |
class |
VarDecorator
Var decorator.
|
Constructor and Description |
---|
PartialBlockForwardingTemplate(Template parent,
Template block,
Template parentPartialBlock,
Template callee,
Handlebars handlebars)
Constructs a PartialBlockForwardingTemplate.
|
Copyright © 2021. All rights reserved.