Class SpincastCssYuiCompressorPebbleExtensionDefault

java.lang.Object
com.mitchellbosecke.pebble.extension.AbstractExtension
org.spincast.plugins.cssyuicompressor.SpincastCssYuiCompressorPebbleExtensionDefault
All Implemented Interfaces:
com.mitchellbosecke.pebble.extension.Extension, SpincastCssYuiCompressorPebbleExtension

public class SpincastCssYuiCompressorPebbleExtensionDefault extends com.mitchellbosecke.pebble.extension.AbstractExtension implements SpincastCssYuiCompressorPebbleExtension
Pebble extension
  • Field Details

  • Constructor Details

  • Method Details

    • getSpincastCssYuiCompressorConfig

      protected SpincastCssYuiCompressorConfig getSpincastCssYuiCompressorConfig()
    • getSpincastConfig

      protected SpincastConfig getSpincastConfig()
    • getSpincastUtils

      protected SpincastUtils getSpincastUtils()
    • getRouter

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

      protected Server getServer()
    • getHttpClient

      protected HttpClient getHttpClient()
    • getSpincastCssYuiCompressorManager

      protected SpincastCssYuiCompressorManager getSpincastCssYuiCompressorManager()
    • 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> cssFilesUrlRelativePaths)
    • bundlingOutput

      protected Object bundlingOutput(String path)
    • bundleCss

      protected boolean bundleCss(File bundleFile, List<String> cssFilesUrlRelativePaths, String urlPath, int lineBreakPos)
    • getExistingBundleFileHash

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

      protected String generateCssBundleName(List<String> cssFilesUrlRelativePaths)
    • getCssBundleFile

      protected File getCssBundleFile(String hash)
    • generateCssBundleUrlPath

      protected String generateCssBundleUrlPath(String hash, boolean withCacheBuster)