public static class RhinoHandlebars.OptionsJs extends Object
| Modifier and Type | Field and Description |
|---|---|
org.mozilla.javascript.NativeObject |
hash
The options hash as JS Rhino object.
|
org.mozilla.javascript.NativeArray |
params
The helper params as JS Rhino object.
|
| Constructor and Description |
|---|
RhinoHandlebars.OptionsJs(Options options)
Creates a new
HandlebarsJs options. |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
fn(Object context)
Apply the
#options#fn(Object) template using the provided context. |
CharSequence |
inverse(Object context)
Apply the
#options#inverse(Object) template using the provided context. |
public org.mozilla.javascript.NativeObject hash
public org.mozilla.javascript.NativeArray params
public RhinoHandlebars.OptionsJs(Options options)
HandlebarsJs options.options - The HandlebarsJs options.public CharSequence fn(Object context) throws IOException
#options#fn(Object) template using the provided context.context - The context to use.IOException - If a resource cannot be loaded.public CharSequence inverse(Object context) throws IOException
#options#inverse(Object) template using the provided context.context - The context to use.IOException - If a resource cannot be loaded.Copyright © 2015. All rights reserved.