Interface Decorator

  • All Known Implementing Classes:
    InlineDecorator

    public interface Decorator
    A decorator allows a declarative means to both annotate particular blocks with metadata as well as to wrap in behaviors when desired, prior to execution.
    Since:
    4.0.0
    • Method Detail

      • apply

        void apply​(Template fn,
                   Options options)
            throws java.io.IOException
        Decorate a template with metadata.
        Parameters:
        fn - Decorated template.
        options - Options object.
        Throws:
        java.io.IOException - If something goes wrong.