public class CoffeeScriptCompiler extends Object implements ResourceTransformer
Constructor and Description |
---|
CoffeeScriptCompiler(Resource mainCompiler,
Resource shim,
OperationTracker tracker) |
Modifier and Type | Method and Description |
---|---|
ContentType |
getTransformedContentType()
Returns the MIME type of a transformed stream.
|
InputStream |
transform(Resource source,
ResourceDependencies dependencies)
Read the source input stream and provide a new input stream of the transformed content.
|
public CoffeeScriptCompiler(@Path(value="classpath:org/apache/tapestry5/webresources/internal/coffee-script.js") Resource mainCompiler, @Path(value="classpath:org/apache/tapestry5/webresources/internal/invoke-coffeescript.js") Resource shim, OperationTracker tracker)
public ContentType getTransformedContentType()
ResourceTransformer
getTransformedContentType
in interface ResourceTransformer
public InputStream transform(Resource source, ResourceDependencies dependencies) throws IOException
ResourceTransformer
transform
in interface ResourceTransformer
source
- input contentdependencies
- allows additional dependencies of the source to be trackedIOException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.