play.template2.GTTemplateLocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastergt Show documentation
Show all versions of fastergt Show documentation
RePlay is a fork of the Play1 framework, made and maintained by Codeborne.
The newest version!
package play.template2;
import java.io.Serializable;
public class GTTemplateLocation implements Serializable {
/**
* correct relative path in the app-context
*/
public final String relativePath;
public GTTemplateLocation(String relativePath) {
this.relativePath = relativePath;
}
public String readSource() {
GTTemplateLocationReal tl = GTFileResolver.impl.getTemplateLocationFromRelativePath(relativePath);
return IO.readContentAsString(tl.realFileURL);
}
@Override
public String toString() {
return "GTTemplateLocation{" +
"relativePath='" + relativePath + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy