Class SpincastCssYuiCompressorPebbleExtensionDefault
java.lang.Object
com.mitchellbosecke.pebble.extension.AbstractExtension
org.spincast.plugins.cssyuicompressor.SpincastCssYuiCompressorPebbleExtensionDefault
- All Implemented Interfaces:
com.mitchellbosecke.pebble.extension.Extension
,SpincastCssYuiCompressorPebbleExtension
public class SpincastCssYuiCompressorPebbleExtensionDefault
extends com.mitchellbosecke.pebble.extension.AbstractExtension
implements SpincastCssYuiCompressorPebbleExtension
Pebble extension
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpincastCssYuiCompressorPebbleExtensionDefault
(SpincastCssYuiCompressorConfig spincastCssYuiCompressorConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?, ?> router, Server server, HttpClient httpClient, SpincastCssYuiCompressorManager spincastCssYuiCompressorManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
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 oirnull
if the bundle doesn't exist.protected HttpClient
protected Router<?,
?> protected Server
protected SpincastConfig
protected SpincastCssYuiCompressorConfig
protected SpincastCssYuiCompressorManager
protected SpincastUtils
Methods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mitchellbosecke.pebble.extension.Extension
getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
-
Field Details
-
CSS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING
- See Also:
-
CSS_BUNDLE_FUNCTION_ARG_LINE_BREAK_POS
- See Also:
-
HASH_LINE_START
- See Also:
-
HASH_LINE_END
- See Also:
-
-
Constructor Details
-
SpincastCssYuiCompressorPebbleExtensionDefault
@Inject public SpincastCssYuiCompressorPebbleExtensionDefault(SpincastCssYuiCompressorConfig spincastCssYuiCompressorConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?, ?> router, Server server, HttpClient httpClient, SpincastCssYuiCompressorManager spincastCssYuiCompressorManager)
-
-
Method Details
-
getSpincastCssYuiCompressorConfig
-
getSpincastConfig
-
getSpincastUtils
-
getRouter
-
getServer
-
getHttpClient
-
getSpincastCssYuiCompressorManager
-
getFunctions
- Specified by:
getFunctions
in interfacecom.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFunctions
in classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
bundlingDisabledOutput
-
bundlingOutput
-
bundleCss
-
getExistingBundleFileHash
Return the hash used to create the existing bundle oirnull
if the bundle doesn't exist. -
generateCssBundleName
-
getCssBundleFile
-
generateCssBundleUrlPath
-