public class SpincastJsClosureCompilerPebbleExtension
extends com.mitchellbosecke.pebble.extension.AbstractExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
JS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING |
| Constructor and Description |
|---|
SpincastJsClosureCompilerPebbleExtension(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig,
SpincastConfig spincastConfig,
SpincastUtils spincastUtils,
Router<?,?> router,
Server server,
HttpClient httpClient,
SpincastJsClosureCompilerManager spincastJsClosureCompilerManager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bundleJs(File bundleFile,
List<String> jsFilesUrlRelativePaths,
String urlPath,
List<String> cmdArgs) |
protected String |
generateJsBundleHash(List<String> jsFilesUrlRelativePaths) |
protected String |
generateJsBundleUrlPath(String hash,
boolean withCacheBuster) |
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() |
public static final String JS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING
@Inject public SpincastJsClosureCompilerPebbleExtension(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 void bundleJs(File bundleFile, List<String> jsFilesUrlRelativePaths, String urlPath, List<String> cmdArgs)
Copyright © 2019. All rights reserved.