public class SassCompiler extends Object implements CssPreProcessor
CssPreProcessor that handles media type "text/x-scss".CssPreProcessor.PreProcessingResult, CssPreProcessor.PreProcessingSource| Constructor and Description |
|---|
SassCompiler(URIResolver resolver,
Map<String,String> env) |
| Modifier and Type | Method and Description |
|---|---|
CssPreProcessor.PreProcessingResult |
compile(CssPreProcessor.PreProcessingSource source) |
boolean |
supportsMediaType(String mediaType,
URL url) |
public SassCompiler(URIResolver resolver, Map<String,String> env)
env - SASS variables. The map is allowed to be mutated by the caller after the
SassCompiler is created.public boolean supportsMediaType(String mediaType, URL url)
supportsMediaType in interface CssPreProcessorpublic CssPreProcessor.PreProcessingResult compile(CssPreProcessor.PreProcessingSource source) throws IOException
compile in interface CssPreProcessorIOException - if something goes wrong reading the inputRuntimeException - if the compilation fails.Copyright © 2010–2025 The DAISY Consortium. All rights reserved.