All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mustachejava.functions.CommentFunction Maven / Gradle / Ivy

There is a newer version: 0.9.14
Show newest version
package com.github.mustachejava.functions;

import com.google.common.base.Function;

/**
 * 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/] 
 */
public class CommentFunction implements Function {
	
	/** Ignore contents of comment block. */
	@Override
	public String apply(String input) {
		return "";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy