Class SpincastJsClosureCompilerPebbleExtensionDefault
java.lang.Object
com.mitchellbosecke.pebble.extension.AbstractExtension
org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerPebbleExtensionDefault
- All Implemented Interfaces:
com.mitchellbosecke.pebble.extension.Extension
,SpincastJsClosureCompilerPebbleExtension
public class SpincastJsClosureCompilerPebbleExtensionDefault
extends com.mitchellbosecke.pebble.extension.AbstractExtension
implements SpincastJsClosureCompilerPebbleExtension
Pebble extension
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpincastJsClosureCompilerPebbleExtensionDefault
(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?, ?> router, Server server, HttpClient httpClient, SpincastJsClosureCompilerManager spincastJsClosureCompilerManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
bundleJs
(File bundleFile, List<String> jsFilesUrlRelativePaths, String urlPath, List<String> cmdArgs) protected Object
bundlingDisabledOutput
(List<String> jsFilesUrlRelativePaths) protected Object
bundlingOutput
(String path) protected String
generateJsBundleName
(List<String> jsFilesUrlRelativePaths) protected String
generateJsBundleUrlPath
(String hash, boolean withCacheBuster) protected String
getExistingBundleFileHash
(File bundleFile) Return the hash used to create the existing bundle oirnull
if the bundle doesn't exist.protected HttpClient
protected File
getJsBundleFile
(String hash) protected Router<?,
?> protected Server
protected SpincastConfig
protected SpincastJsClosureCompilerConfig
protected SpincastJsClosureCompilerManager
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
-
logger
protected static final org.slf4j.Logger logger -
JS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING
- See Also:
-
HASH_LINE_START
- See Also:
-
HASH_LINE_END
- See Also:
-
-
Constructor Details
-
SpincastJsClosureCompilerPebbleExtensionDefault
@Inject public SpincastJsClosureCompilerPebbleExtensionDefault(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?, ?> router, Server server, HttpClient httpClient, SpincastJsClosureCompilerManager spincastJsClosureCompilerManager)
-
-
Method Details
-
getSpincastJsClosureCompilerConfig
-
getSpincastConfig
-
getSpincastUtils
-
getRouter
-
getServer
-
getHttpClient
-
getSpincastJsClosureCompilerManager
-
getFunctions
- Specified by:
getFunctions
in interfacecom.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFunctions
in classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
bundlingDisabledOutput
-
bundlingOutput
-
bundleJs
-
getExistingBundleFileHash
Return the hash used to create the existing bundle oirnull
if the bundle doesn't exist. -
generateJsBundleName
-
getJsBundleFile
-
generateJsBundleUrlPath
-