Class LookupHelper
java.lang.Object
com.github.jknack.handlebars.helper.LookupHelper
Deprecated.
com.github.jknack.handlebars.helper package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
Lookup helper, which allows to get a context variable.
It was introduced with dynamic partials:
{{> (lookup '.' 'myVariable') }}
- Since:
- 2.2.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Deprecated.A singleton instance of this helper. -
NAME
Deprecated.The helper's name.- See Also:
-
-
Constructor Details
-
LookupHelper
public LookupHelper()Deprecated.
-
-
Method Details
-
apply
Deprecated.Description copied from interface:HelperApply the helper to the context.- Specified by:
applyin interfaceHelper<Object>- Parameters:
context- The context object.options- The options object.- Returns:
- A string result.
- Throws:
IOException- If a template cannot be loaded.
-