
com.mitchellbosecke.pebble.loader.StringLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pebble Show documentation
Show all versions of pebble Show documentation
Templating engine for Java.
/*******************************************************************************
* This file is part of Pebble.
*
* Copyright (c) 2014 by Mitchell Bösecke
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
package com.mitchellbosecke.pebble.loader;
import java.io.Reader;
import java.io.StringReader;
import com.mitchellbosecke.pebble.error.LoaderException;
public class StringLoader implements Loader {
@Override
public Reader getReader(String templateName) throws LoaderException {
return new StringReader(templateName);
}
@Override
public void setPrefix(String prefix) {
}
@Override
public void setSuffix(String suffix) {
}
@Override
public void setCharset(String charset) {
}
@Override
public String resolveRelativePath(String relativePath, String anchorPath) {
return null;
}
@Override
public String createCacheKey(String templateName) {
return templateName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy