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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpincastJsClosureCompilerPebbleExtensionDefault(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?, ?> router, Server server, HttpClient httpClient, SpincastJsClosureCompilerManager spincastJsClosureCompilerManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbundleJs(File bundleFile, List<String> jsFilesUrlRelativePaths, String urlPath, List<String> cmdArgs) protected ObjectbundlingDisabledOutput(List<String> jsFilesUrlRelativePaths) protected ObjectbundlingOutput(String path) protected StringgenerateJsBundleName(List<String> jsFilesUrlRelativePaths) protected StringgenerateJsBundleUrlPath(String hash, boolean withCacheBuster) protected StringgetExistingBundleFileHash(File bundleFile) Return the hash used to create the existing bundle oirnullif the bundle doesn't exist.protected HttpClientprotected FilegetJsBundleFile(String hash) protected Router<?,?> protected Serverprotected SpincastConfigprotected SpincastJsClosureCompilerConfigprotected SpincastJsClosureCompilerManagerprotected SpincastUtilsMethods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperatorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getFunctionsin interfacecom.mitchellbosecke.pebble.extension.Extension- Overrides:
getFunctionsin classcom.mitchellbosecke.pebble.extension.AbstractExtension
-
bundlingDisabledOutput
-
bundlingOutput
-
bundleJs
-
getExistingBundleFileHash
Return the hash used to create the existing bundle oirnullif the bundle doesn't exist. -
generateJsBundleName
-
getJsBundleFile
-
generateJsBundleUrlPath
-