- All Implemented Interfaces:
- com.google.common.base.Function<String,String>
public class CommentFunction
extends Object
implements com.google.common.base.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 scopes = new HashMap();
scopes.put("comment", new CommentFunction());
...
Usage in template:
... {{#comment}} Your multiline comment text {{/comment}} ...
- Author:
- gw0 [http://gw.tnode.com/]