public class WithHelper extends java.lang.Object implements Helper<java.lang.Object>
Normally, Handlebars templates are evaluated against the context passed into the compiled method.
You can shift the context for a section of a template by using the built-in with block helper.
| Modifier and Type | Field and Description | 
|---|---|
static Helper<java.lang.Object> | 
INSTANCE
A singleton instance of this helper. 
 | 
static java.lang.String | 
NAME
The helper's name. 
 | 
| Constructor and Description | 
|---|
WithHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
apply(java.lang.Object context,
     Options options)
Apply the helper to the context. 
 | 
public static final Helper<java.lang.Object> INSTANCE
public static final java.lang.String NAME
Copyright © 2010 - 2023 Adobe. All Rights Reserved