Class InlineDecorator

  • All Implemented Interfaces:
    Decorator

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

      Fields 
      Modifier and Type Field Description
      static Decorator INSTANCE
      A singleton instance of this helper.
    • Constructor Summary

      Constructors 
      Constructor Description
      InlineDecorator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(Template fn, Options options)
      Decorate a template with metadata.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

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

      • InlineDecorator

        public InlineDecorator()
    • Method Detail

      • apply

        public void apply​(Template fn,
                          Options options)
                   throws java.io.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:
        java.io.IOException - If something goes wrong.