Class PebbleEngine.PebbleLoader

java.lang.Object
services.moleculer.web.template.PebbleEngine.PebbleLoader
All Implemented Interfaces:
io.pebbletemplates.pebble.loader.Loader<String>
Enclosing class:
PebbleEngine

public static class PebbleEngine.PebbleLoader extends Object implements io.pebbletemplates.pebble.loader.Loader<String>
  • Field Details

    • charset

      protected Charset charset
    • templatePath

      protected String templatePath
    • extension

      protected String extension
  • Constructor Details

    • PebbleLoader

      public PebbleLoader()
  • Method Details

    • getReader

      public Reader getReader(String cacheKey) throws io.pebbletemplates.pebble.error.LoaderException
      Specified by:
      getReader in interface io.pebbletemplates.pebble.loader.Loader<String>
      Throws:
      io.pebbletemplates.pebble.error.LoaderException
    • resourceExists

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

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

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

      public void setSuffix(String suffix)
      Specified by:
      setSuffix 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>