Class BackSlashLambda

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

    public class BackSlashLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Replaces forward slash with backslash in the text. Register:
     additionalProperties.put("backslash", new BackSlashLambda());
     
    Use:
     {{#backslash}}{{summary}}{{/backslash}}
     
    • Constructor Detail

      • BackSlashLambda

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