Fork me on GitHub

ClasspathLoader

In package com.mitchellbosecke.pebble.loader

public class ClasspathLoader extends Object implements Loader

Uses a classloader to find templates located on the classpath.

Constructors

public ClasspathLoader(ClassLoader classLoader)
Parameters:
  • ClassLoader classLoader
public ClasspathLoader()
Parameters:
  • No parameters

Methods

public Reader getReader(String templateName)
Parameters:
  • String templateName
public String getSuffix()
Parameters:
  • No parameters
public void setSuffix(String suffix)
Parameters:
  • String suffix
public String getPrefix()
Parameters:
  • No parameters
public void setPrefix(String prefix)
Parameters:
  • String prefix
public String getCharset()
Parameters:
  • No parameters
public void setCharset(String charset)
Parameters:
  • String charset
public String resolveRelativePath(String relativePath, String anchorPath)
Parameters:
  • String relativePath
  • String anchorPath
public String createCacheKey(String templateName)
Parameters:
  • String templateName
public boolean resourceExists(String templateName)
Parameters:
  • String templateName