| Package | Description |
|---|---|
| com.github.jknack.handlebars | |
| com.github.jknack.handlebars.internal |
| Modifier and Type | Field and Description |
|---|---|
Context |
Options.context
The current context.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
Context.Builder.build()
Build a context stack.
|
Context |
Context.data(Map<String,?> attributes)
Store the map in the data storage.
|
Context |
Context.data(String name,
Object value)
Set an attribute in the data storage.
|
static Context |
Context.newContext(Context parent,
Object model)
Creates a new child context.
|
static Context |
Context.newContext(Object model)
Creates a new root context.
|
Context |
Context.parent()
The parent context or null.
|
Context |
Options.wrap(Object model)
Creates a
Context from the given model. |
| Modifier and Type | Method and Description |
|---|---|
String |
Template.apply(Context context)
Merge the template tree using the given context.
|
void |
Template.apply(Context context,
Writer writer)
Merge the template tree using the given context.
|
static Context.Builder |
Context.newBuilder(Context parent,
Object model)
Start a new context builder.
|
static Context |
Context.newContext(Context parent,
Object model)
Creates a new child context.
|
| 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 Object |
ParamType.parse(Context context,
Object param)
Parse the given parameter to a runtime representation.
|
Copyright © 2015. All rights reserved.