play.templates
Class Template

java.lang.Object
  extended by play.templates.Template

public class Template
extends java.lang.Object

A template


Nested Class Summary
static class Template.ExecutableTemplate
          Groovy template
static class Template.TClassLoader
           
 
Field Summary
 java.lang.Class compiledTemplate
           
 java.lang.String compiledTemplateName
           
static java.lang.ThreadLocal<Template> currentTemplate
           
 java.util.Set<java.lang.Integer> doBodyLines
           
 java.lang.String groovySource
           
static java.lang.ThreadLocal<Template> layout
           
static java.lang.ThreadLocal<java.util.Map> layoutData
           
 java.util.Map<java.lang.Integer,java.lang.Integer> linesMatrix
           
 java.lang.String name
           
 java.lang.String source
           
 java.lang.Long timestamp
           
 
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
 

Field Detail

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
Constructor Detail

Template

public Template(java.lang.String name,
                java.lang.String source)
Method Detail

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