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 Details

  • Constructor Details

  • Method Details

    • getSpincastJsClosureCompilerConfig

      protected SpincastJsClosureCompilerConfig getSpincastJsClosureCompilerConfig()
    • getSpincastConfig

      protected SpincastConfig getSpincastConfig()
    • getSpincastUtils

      protected SpincastUtils getSpincastUtils()
    • getRouter

      protected Router<?,?> getRouter()
    • getServer

      protected Server getServer()
    • getHttpClient

      protected HttpClient getHttpClient()
    • getSpincastJsClosureCompilerManager

      protected SpincastJsClosureCompilerManager getSpincastJsClosureCompilerManager()
    • getFunctions

      public Map<String,com.mitchellbosecke.pebble.extension.Function> getFunctions()
      Specified by:
      getFunctions in interface com.mitchellbosecke.pebble.extension.Extension
      Overrides:
      getFunctions in class com.mitchellbosecke.pebble.extension.AbstractExtension
    • bundlingDisabledOutput

      protected Object bundlingDisabledOutput(List<String> jsFilesUrlRelativePaths)
    • bundlingOutput

      protected Object bundlingOutput(String path)
    • bundleJs

      protected boolean bundleJs(File bundleFile, List<String> jsFilesUrlRelativePaths, String urlPath, List<String> cmdArgs)
    • getExistingBundleFileHash

      protected String getExistingBundleFileHash(File bundleFile)
      Return the hash used to create the existing bundle oir null if the bundle doesn't exist.
    • generateJsBundleName

      protected String generateJsBundleName(List<String> jsFilesUrlRelativePaths)
    • getJsBundleFile

      protected File getJsBundleFile(String hash)
    • generateJsBundleUrlPath

      protected String generateJsBundleUrlPath(String hash, boolean withCacheBuster)