public class SpincastJsClosureCompilerPebbleExtensionDefault extends com.mitchellbosecke.pebble.extension.AbstractExtension implements SpincastJsClosureCompilerPebbleExtension
| Modifier and Type | Field and Description |
|---|---|
protected static String |
HASH_LINE_END |
protected static String |
HASH_LINE_START |
static String |
JS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastJsClosureCompilerPebbleExtensionDefault(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig,
SpincastConfig spincastConfig,
SpincastUtils spincastUtils,
Router<?,?> router,
Server server,
HttpClient httpClient,
SpincastJsClosureCompilerManager spincastJsClosureCompilerManager) |
| Modifier and Type | Method and Description |
|---|---|
protected 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 oir
null if the bundle doesn't
exist. |
Map<String,com.mitchellbosecke.pebble.extension.Function> |
getFunctions() |
protected HttpClient |
getHttpClient() |
protected File |
getJsBundleFile(String hash) |
protected Router<?,?> |
getRouter() |
protected Server |
getServer() |
protected SpincastConfig |
getSpincastConfig() |
protected SpincastJsClosureCompilerConfig |
getSpincastJsClosureCompilerConfig() |
protected SpincastJsClosureCompilerManager |
getSpincastJsClosureCompilerManager() |
protected SpincastUtils |
getSpincastUtils() |
getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperatorsprotected static final org.slf4j.Logger logger
public static final String JS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING
protected static final String HASH_LINE_START
protected static final String HASH_LINE_END
@Inject public SpincastJsClosureCompilerPebbleExtensionDefault(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig, SpincastConfig spincastConfig, SpincastUtils spincastUtils, Router<?,?> router, Server server, HttpClient httpClient, SpincastJsClosureCompilerManager spincastJsClosureCompilerManager)
protected SpincastJsClosureCompilerConfig getSpincastJsClosureCompilerConfig()
protected SpincastConfig getSpincastConfig()
protected SpincastUtils getSpincastUtils()
protected Router<?,?> getRouter()
protected Server getServer()
protected HttpClient getHttpClient()
protected SpincastJsClosureCompilerManager getSpincastJsClosureCompilerManager()
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> jsFilesUrlRelativePaths)
protected boolean bundleJs(File bundleFile, List<String> jsFilesUrlRelativePaths, String urlPath, List<String> cmdArgs)
protected String getExistingBundleFileHash(File bundleFile)
null if the bundle doesn't
exist.Copyright © 2019. All rights reserved.