Class InlineDecorator

java.lang.Object
com.github.jknack.handlebars.helper.InlineDecorator
All Implemented Interfaces:
Decorator

public class InlineDecorator extends Object implements Decorator
Inline partials via Decorator API.
 {{#*inline \"myPartial\"}}success{{/inline}}{{> myPartial}}
 
Since:
4.0.0
  • Field Details

    • INSTANCE

      public static final Decorator INSTANCE
      A singleton instance of this helper.
  • Constructor Details

    • InlineDecorator

      public InlineDecorator()
  • Method Details

    • apply

      public void apply(Template fn, Options options) throws IOException
      Description copied from interface: Decorator
      Decorate a template with metadata.
      Specified by:
      apply in interface Decorator
      Parameters:
      fn - Decorated template.
      options - Options object.
      Throws:
      IOException - If something goes wrong.