Class UncamelizeLambda

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

    public class UncamelizeLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Converts text in a fragment from camelCase or PascalCase to a space separated string Register:
     additionalProperties.put("uncamelize", new UncamelizeLambda());
     
    Use:
     {{#uncamelize}}{{name}}{{/uncamelize}}
     
    • Constructor Detail

      • UncamelizeLambda

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