Class JoinWithCommaLambda

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

    public class JoinWithCommaLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Split text by 2 spaces and then join the strings with ", " Register:
     additionalProperties.put("joinWithComma", new JoinWithCommaLambda());
     
    Use:
     {{#joinWithComma}}{{name}}{{/joinWithComma}}
     
    • Constructor Detail

      • JoinWithCommaLambda

        public JoinWithCommaLambda()
      • JoinWithCommaLambda

        public JoinWithCommaLambda​(boolean trimInput,
                                   String delimit,
                                   String coalesce)
    • 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