All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.template2.GTTemplateLocation Maven / Gradle / Ivy

Go to download

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