Package | Description |
---|---|
com.github.jknack.handlebars | |
com.github.jknack.handlebars.helper |
Modifier and Type | Method and Description |
---|---|
<C> Helper<C> |
HelperRegistry.helper(String name)
Find a helper by name.
|
<C> Helper<C> |
Handlebars.helper(String name)
Find a helper by name.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,Helper<?>>> |
HelperRegistry.helpers()
List all the helpers from registry.
|
Set<Map.Entry<String,Helper<?>>> |
Handlebars.helpers() |
Modifier and Type | Method and Description |
---|---|
<H> HelperRegistry |
HelperRegistry.registerHelper(String name,
Helper<H> helper)
Register a helper in the helper registry.
|
<H> Handlebars |
Handlebars.registerHelper(String name,
Helper<H> helper)
Register a helper in the helper registry.
|
<H> HelperRegistry |
HelperRegistry.registerHelperMissing(Helper<H> helper)
Register the special helper missing in the registry.
|
<H> Handlebars |
Handlebars.registerHelperMissing(Helper<H> helper)
Register a missing helper in the helper registry.
|
Modifier and Type | Class and Description |
---|---|
class |
BlockHelper
The block helper will replace its section with the partial of the same name if it exists.
|
class |
ConditionalHelpers
Implementation of equals, greater, lessThan, and, or, etc..
|
class |
EachHelper
You can iterate over a list using the built-in each helper.
|
class |
EmbeddedHelper
Given:
home.hbs
|
class |
I18nHelper
Implementation of i18n helper for Java and JavaScript.
|
class |
IfHelper
You can use the if helper to conditionally render a block.
|
class |
LogHelper
Log a message.
|
class |
LookupHelper
Lookup helper, which allows to get a context variable.
|
class |
MethodHelper
Wrap a method as Handlebars helper.
|
class |
PartialHelper
The partial registry helper.
|
class |
PrecompileHelper
Precompile a template to JavaScript using handlebars.js.
|
class |
StringHelpers
Commons string function helpers.
|
class |
UnlessHelper
You can use the unless helper as the inverse of the if helper.
|
class |
WithHelper
Normally, Handlebars templates are evaluated against the context passed into
the compiled method.
|
Modifier and Type | Field and Description |
---|---|
static Helper<Object> |
WithHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<Object> |
UnlessHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<String> |
PrecompileHelper.INSTANCE
The default and shared instance.
|
static Helper<Object> |
PartialHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<Object> |
LookupHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<Object> |
LogHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<Object> |
IfHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<String> |
EmbeddedHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<Object> |
EachHelper.INSTANCE
A singleton instance of this helper.
|
static Helper<Object> |
BlockHelper.INSTANCE
A singleton instance of this helper.
|
Modifier and Type | Method and Description |
---|---|
<C> Helper<C> |
DefaultHelperRegistry.helper(String name) |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,Helper<?>>> |
DefaultHelperRegistry.helpers() |
Modifier and Type | Method and Description |
---|---|
<H> HelperRegistry |
DefaultHelperRegistry.registerHelper(String name,
Helper<H> helper) |
<H> HelperRegistry |
DefaultHelperRegistry.registerHelperMissing(Helper<H> helper) |
Copyright © 2021. All rights reserved.