Class PrefixWithHashLambda

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

    public class PrefixWithHashLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Replaces duplicate whitespace characters in a fragment with single space. Register:
     additionalProperties.put("lambdaPrefixWithHash", new PrefixWithHashLambda());
     
    Use:
     {{#lambdaPrefixWithHash}}{{name}}{{/lambdaPrefixWithHash}}
     
    • Constructor Detail

      • PrefixWithHashLambda

        public PrefixWithHashLambda()
    • 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