Class ListHelper
- java.lang.Object
-
- org.craftercms.deployer.utils.handlebars.ListHelper
-
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>
public class ListHelper extends Object implements com.github.jknack.handlebars.Helper<Object>
Handlebars helper class that provides conditional list iteration, which means that it will only iterate if it's anIterable
or an array, and will do normal Handlebars processing otherwise.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static ListHelper
INSTANCE
static String
NAME
-
Constructor Summary
Constructors Constructor Description ListHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply(Object context, com.github.jknack.handlebars.Options options)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final ListHelper INSTANCE
-
-
Method Detail
-
apply
public Object apply(Object context, com.github.jknack.handlebars.Options options) throws IOException
- Specified by:
apply
in interfacecom.github.jknack.handlebars.Helper<Object>
- Throws:
IOException
-
-