play.template2.GTTemplateLocation Maven / Gradle / Ivy
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