Class ForwardSlashLambda

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

    public class ForwardSlashLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Replaces backslash with forward slash in the text.

    Register:

     additionalProperties.put("forwardslash", new ForwardSlashLambda());
     

    Use:

     {{#forwardslash}}{{summary}}{{/forwardslash}}
     
    • Constructor Detail

      • ForwardSlashLambda

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