Class DoubleQuoteLambda

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

    public class DoubleQuoteLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Double quote the text if it's not already the case. Register:
     additionalProperties.put("doublequote", new DoubleQuoteLambda());
     
    Use:
     {{#doublequote}}{{summary}}{{/doublequote}}
     
    • Constructor Detail

      • DoubleQuoteLambda

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