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 an Iterable or an array, and will do normal Handlebars processing otherwise.
Author:
avasquez
  • Field Details

  • Constructor Details

    • ListHelper

      public ListHelper()
  • Method Details

    • apply

      public Object apply(Object context, com.github.jknack.handlebars.Options options) throws IOException
      Specified by:
      apply in interface com.github.jknack.handlebars.Helper<Object>
      Throws:
      IOException