Class EachHelper

  • All Implemented Interfaces:
    Helper<Object>

    public class EachHelper
    extends Object
    implements Helper<Object>
    You can iterate over a list using the built-in each helper. Inside the block, you can use this to reference the element being iterated over.
    Since:
    0.3.0
    • Constructor Detail

      • EachHelper

        public EachHelper()
    • Method Detail

      • apply

        public CharSequence apply​(Object context,
                                  Options options)
                           throws IOException
        Description copied from interface: Helper
        Apply the helper to the context.
        Specified by:
        apply in interface Helper<Object>
        Parameters:
        context - The context object.
        options - The options object.
        Returns:
        A string result.
        Throws:
        IOException - If a template cannot be loaded.