Fork me on GitHub

FileLoader

In package com.mitchellbosecke.pebble.loader

public class FileLoader extends Object implements Loader

This loader searches for a file located anywhere on the filesystem. It uses java.io.File to perform the lookup.

Constructors

public FileLoader()
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