T - public abstract class CompressorMinifier<T extends com.googlecode.htmlcompressor.compressor.Compressor> extends AbstractMinifier
configuration| Constructor and Description |
|---|
CompressorMinifier(T compressor) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Configuration configuration) |
protected void |
initCompressor(T compressor,
Configuration configuration)
Initialize the compressor instance.
|
protected boolean |
match(String mustacheName)
Useful to filter out specific templates, e.g. to only minify files with
*.html suffix.
|
String |
minify(String text)
Minify the specified text (aka part of the template contents).
|
Reader |
minify(String mustacheName,
Reader mustacheContents)
Minify the template contents.
|
getConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeyspublic CompressorMinifier(T compressor)
compressor - public void init(Configuration configuration)
init in interface ConfigurationAwareinit in class AbstractConfigurationAwarepublic Reader minify(String mustacheName, Reader mustacheContents)
Minifierminify in interface Minifierminify in class AbstractMinifierpublic String minify(String text)
Minifierminify in interface Minifierminify in class AbstractMinifierprotected boolean match(String mustacheName)
mustacheName - true if the minifier should be applied to the given
mustache name, false otherwiseprotected void initCompressor(T compressor, Configuration configuration)
compressor - configuration - Copyright © 2016. All rights reserved.