Class CopyLambda

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

    public class CopyLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Saves template text to be used later. Register:
     additionalProperties.put("copy", new CopyLambda());
     
    Use:
     {{#copy}}{{name}}{{/copy}}
     
    • Field Detail

      • savedContent

        public String savedContent
    • Constructor Detail

      • CopyLambda

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