public class LessResourceTransformer extends Object implements ResourceTransformer
@import
, which isn't
supported by the normal WRO4J processor.Constructor and Description |
---|
LessResourceTransformer() |
Modifier and Type | Method and Description |
---|---|
protected com.github.sommeri.less4j.LessCompiler.CompilationResult |
compile(com.github.sommeri.less4j.LessCompiler compiler,
com.github.sommeri.less4j.LessSource lessSource)
Invoked from
transform(org.apache.tapestry5.ioc.Resource, org.apache.tapestry5.services.assets.ResourceDependencies)
to perform the actual work of compiling a Resource which has been wrapped as a
LessSource . |
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 LessResourceTransformer()
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
protected com.github.sommeri.less4j.LessCompiler.CompilationResult compile(com.github.sommeri.less4j.LessCompiler compiler, com.github.sommeri.less4j.LessSource lessSource) throws com.github.sommeri.less4j.Less4jException
transform(org.apache.tapestry5.ioc.Resource, org.apache.tapestry5.services.assets.ResourceDependencies)
to perform the actual work of compiling a Resource
which has been wrapped as a
LessSource
.com.github.sommeri.less4j.Less4jException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.