Class CommentFunction

java.lang.Object
com.github.mustachejava.functions.CommentFunction
All Implemented Interfaces:
Function<String,String>

public class CommentFunction extends Object implements Function<String,String>
Mustache.java block comment function. Usage code with a class: public class ... { CommentFunction comment = new CommentFunction(); ... } Usage code with a Map: HashMap<String, Object> scopes = new HashMap<String, Object>(); scopes.put("comment", new CommentFunction()); ... Usage in template: ... {{#comment}} Your multiline comment text {{/comment}} ...
  • Constructor Details

    • CommentFunction

      public CommentFunction()
  • Method Details