Class PrefixLambda

  • All Implemented Interfaces:
    com.samskivert.mustache.Mustache.Lambda

    public class PrefixLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Prefixes rendered fragment lines without applying additional indentation.
    • Constructor Detail

      • PrefixLambda

        public PrefixLambda​(String prefix,
                            boolean prefixFirstLine)
    • Method Detail

      • execute

        public void execute​(com.samskivert.mustache.Template.Fragment fragment,
                            Writer writer)
                     throws IOException
        Specified by:
        execute in interface com.samskivert.mustache.Mustache.Lambda
        Throws:
        IOException