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

li.rudin.mavenjs.api.Compiler Maven / Gradle / Ivy

package li.rudin.mavenjs.api;

/**
 * Compiles a file with specified extension to another type
 *
 */
public interface Compiler
{
	/**
	 * Extension (sass, coffee, etc) without dot
	 * @return
	 */
	String getSourceExtension();
	
	/**
	 * Target extension without dot (js, css)
	 * @return
	 */
	String getTargetExtension();
	
	/**
	 * Compiles the input
	 * @param fileName filename relative: js/my.coffee
	 * @param input contents of file
	 * @return
	 */
	String compile(String fileName, String input) throws Exception;
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy