Class ResourceLoader

java.lang.Object
com.github.sonus21.rqueue.utils.pebble.ResourceLoader
All Implemented Interfaces:
io.pebbletemplates.pebble.loader.Loader<String>

public class ResourceLoader extends Object implements io.pebbletemplates.pebble.loader.Loader<String>
  • Constructor Details

    • ResourceLoader

      public ResourceLoader()
  • Method Details

    • getReader

      public Reader getReader(String templateName)
      Specified by:
      getReader in interface io.pebbletemplates.pebble.loader.Loader<String>
    • getSuffix

      public String getSuffix()
    • setSuffix

      public void setSuffix(String suffix)
      Specified by:
      setSuffix in interface io.pebbletemplates.pebble.loader.Loader<String>
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
      Specified by:
      setPrefix in interface io.pebbletemplates.pebble.loader.Loader<String>
    • getCharset

      public String getCharset()
    • setCharset

      public void setCharset(String charset)
      Specified by:
      setCharset in interface io.pebbletemplates.pebble.loader.Loader<String>
    • resolveRelativePath

      public String resolveRelativePath(String relativePath, String anchorPath)
      Specified by:
      resolveRelativePath in interface io.pebbletemplates.pebble.loader.Loader<String>
    • createCacheKey

      public String createCacheKey(String templateName)
      Specified by:
      createCacheKey in interface io.pebbletemplates.pebble.loader.Loader<String>
    • resourceExists

      public boolean resourceExists(String templateName)
      Specified by:
      resourceExists in interface io.pebbletemplates.pebble.loader.Loader<String>