play.templates
Class GroovyTemplate

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

public class GroovyTemplate
extends BaseTemplate

A template


Nested Class Summary
static class GroovyTemplate.ExecutableTemplate
          Groovy template
static class GroovyTemplate.TClassLoader
           
 
Nested classes/interfaces inherited from class play.templates.BaseTemplate
BaseTemplate.RawData
 
Field Summary
 
Fields inherited from class play.templates.BaseTemplate
compiledSource, compiledTemplate, compiledTemplateName, currentTemplate, doBodyLines, layout, layoutData, linesMatrix, timestamp
 
Fields inherited from class play.templates.Template
name, source
 
Constructor Summary
GroovyTemplate(java.lang.String source)
           
GroovyTemplate(java.lang.String name, java.lang.String source)
           
 
Method Summary
 void compile()
           
 java.lang.String render(java.util.Map<java.lang.String,java.lang.Object> args)
           
 
Methods inherited from class play.templates.BaseTemplate
loadFromCache, loadPrecompiled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyTemplate

public GroovyTemplate(java.lang.String name,
                      java.lang.String source)

GroovyTemplate

public GroovyTemplate(java.lang.String source)
Method Detail

compile

public void compile()
Specified by:
compile in class Template

render

public java.lang.String render(java.util.Map<java.lang.String,java.lang.Object> args)
Specified by:
render in class Template


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