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

play.templates.BaseTemplate Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
package play.templates;

import java.util.Map;

public abstract class BaseTemplate extends Template {
    public static final ThreadLocal layout = new ThreadLocal<>();
    public static final ThreadLocal> layoutData = new ThreadLocal<>();
    public static final ThreadLocal currentTemplate = new ThreadLocal<>();

  protected BaseTemplate(String name) {
    super(name);
  }

  public static final class RawData {

        public String data;

        public RawData(Object val) {
            if (val == null) {
                data = "";
            } else {
                data = val.toString();
            }
        }

        @Override
        public String toString() {
            return data;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy