Interface Mustache.InvertibleLambda

  • All Superinterfaces:
    Mustache.Lambda
    Enclosing class:
    Mustache

    public static interface Mustache.InvertibleLambda
    extends Mustache.Lambda
    Handles lambdas that are also invoked for inverse sections..
    • Method Detail

      • executeInverse

        void executeInverse​(Template.Fragment frag,
                            java.io.Writer out)
                     throws java.io.IOException
        Executes this lambda on the supplied template fragment, when the lambda is used in an inverse section. The lambda should write its results to out.
        Parameters:
        frag - the fragment of the template that was passed to the lambda.
        out - the writer to which the lambda should write its output.
        Throws:
        java.io.IOException