In package com.mitchellbosecke.pebble.loader
public class StringLoader extends Object implements Loader
This loader is not intended to be used in a production system; it is primarily for testing and debugging. Many tags do not work when using this loader, such as "extends", "imports", "include".
Constructors
Methods
public Reader getReader(String templateName)
Parameters:
-
String templateName
public void setPrefix(String prefix)
Parameters:
-
String prefix
public void setSuffix(String suffix)
Parameters:
-
String suffix
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