play.templates
Class Template
java.lang.Object
play.templates.Template
public class Template
- extends java.lang.Object
A template
Constructor Summary |
Template(java.lang.String name,
java.lang.String source)
|
Method Summary |
void |
compile()
|
boolean |
loadFromCache()
|
java.lang.String |
render(java.util.Map<java.lang.String,java.lang.Object> args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public java.lang.String name
source
public java.lang.String source
groovySource
public java.lang.String groovySource
linesMatrix
public java.util.Map<java.lang.Integer,java.lang.Integer> linesMatrix
doBodyLines
public java.util.Set<java.lang.Integer> doBodyLines
compiledTemplate
public java.lang.Class compiledTemplate
compiledTemplateName
public java.lang.String compiledTemplateName
timestamp
public java.lang.Long timestamp
layout
public static java.lang.ThreadLocal<Template> layout
layoutData
public static java.lang.ThreadLocal<java.util.Map> layoutData
currentTemplate
public static java.lang.ThreadLocal<Template> currentTemplate
Template
public Template(java.lang.String name,
java.lang.String source)
loadFromCache
public boolean loadFromCache()
compile
public void compile()
render
public java.lang.String render(java.util.Map<java.lang.String,java.lang.Object> args)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly