public class SpincastCssYuiCompressorPebbleExtensionDefault extends com.mitchellbosecke.pebble.extension.AbstractExtension implements SpincastCssYuiCompressorPebbleExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING |
static String |
CSS_BUNDLE_FUNCTION_ARG_LINE_BREAK_POS |
protected static String |
HASH_LINE_END |
protected static String |
HASH_LINE_START |
| Constructor and Description |
|---|
SpincastCssYuiCompressorPebbleExtensionDefault(SpincastCssYuiCompressorConfig spincastCssYuiCompressorConfig,
SpincastConfig spincastConfig,
SpincastUtils spincastUtils,
Router<?,?> router,
Server server,
HttpClient httpClient,
SpincastCssYuiCompressorManager spincastCssYuiCompressorManager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
bundleCss(File bundleFile,
List<String> cssFilesUrlRelativePaths,
String urlPath,
int lineBreakPos) |
protected Object |
bundlingDisabledOutput(List<String> cssFilesUrlRelativePaths) |
protected Object |
bundlingOutput(String path) |
protected String |
generateCssBundleName(List<String> cssFilesUrlRelativePaths) |
protected String |
generateCssBundleUrlPath(String hash,
boolean withCacheBuster) |
protected File |
getCssBundleFile(String hash) |
protected String |
getExistingBundleFileHash(File bundleFile)
Return the hash used to create the existing
bundle oir
null if the bundle doesn't
exist. |
Map<String,com.mitchellbosecke.pebble.extension.Function> |
getFunctions() |
protected HttpClient |
getHttpClient() |
protected Router<?,?> |
getRouter() |
protected Server |
getServer() |
protected SpincastConfig |
getSpincastConfig() |
protected SpincastCssYuiCompressorConfig |
getSpincastCssYuiCompressorConfig() |
protected SpincastCssYuiCompressorManager |
getSpincastCssYuiCompressorManager() |
protected SpincastUtils |
getSpincastUtils() |
getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperatorspublic static final String CSS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING
public static final String CSS_BUNDLE_FUNCTION_ARG_LINE_BREAK_POS
protected static final String HASH_LINE_START
protected static final String HASH_LINE_END
@Inject public SpincastCssYuiCompressorPebbleExtensionDefault(SpincastCssYuiCompressorConfig spincastCssYuiCompressorConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?,?> router, Server server, HttpClient httpClient, SpincastCssYuiCompressorManager spincastCssYuiCompressorManager)
protected SpincastCssYuiCompressorConfig getSpincastCssYuiCompressorConfig()
protected SpincastConfig getSpincastConfig()
protected SpincastUtils getSpincastUtils()
protected Router<?,?> getRouter()
protected Server getServer()
protected HttpClient getHttpClient()
protected SpincastCssYuiCompressorManager getSpincastCssYuiCompressorManager()
public Map<String,com.mitchellbosecke.pebble.extension.Function> getFunctions()
getFunctions in interface com.mitchellbosecke.pebble.extension.ExtensiongetFunctions in class com.mitchellbosecke.pebble.extension.AbstractExtensionprotected Object bundlingDisabledOutput(List<String> cssFilesUrlRelativePaths)
protected boolean bundleCss(File bundleFile, List<String> cssFilesUrlRelativePaths, String urlPath, int lineBreakPos)
protected String getExistingBundleFileHash(File bundleFile)
null if the bundle doesn't
exist.Copyright © 2019. All rights reserved.