play.templates
Class Template

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

public class Template
extends Object

A template


Nested Class Summary
static class Template.ExecutableTemplate
          Groovy template
static class Template.TClassLoader
           
 
Field Summary
 Class compiledTemplate
           
 String compiledTemplateName
           
static ThreadLocal<Template> currentTemplate
           
 Set<Integer> doBodyLines
           
 String groovySource
           
static ThreadLocal<Template> layout
           
static ThreadLocal<Map> layoutData
           
 Map<Integer,Integer> linesMatrix
           
 String name
           
 String source
           
 Long timestamp
           
 
Constructor Summary
Template(String name, String source)
           
 
Method Summary
 void compile()
           
 boolean loadFromCache()
           
 void loadPrecompiled()
           
 String render(Map<String,Object> args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

source

public String source

groovySource

public String groovySource

linesMatrix

public Map<Integer,Integer> linesMatrix

doBodyLines

public Set<Integer> doBodyLines

compiledTemplate

public Class compiledTemplate

compiledTemplateName

public String compiledTemplateName

timestamp

public Long timestamp

layout

public static ThreadLocal<Template> layout

layoutData

public static ThreadLocal<Map> layoutData

currentTemplate

public static ThreadLocal<Template> currentTemplate
Constructor Detail

Template

public Template(String name,
                String source)
Method Detail

loadPrecompiled

public void loadPrecompiled()

loadFromCache

public boolean loadFromCache()

compile

public void compile()

render

public String render(Map<String,Object> args)


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly