com.xpn.xwiki.render.groovy
Class GroovyTemplateEngine

java.lang.Object
  extended bygroovy.text.TemplateEngine
      extended bycom.xpn.xwiki.render.groovy.GroovyTemplateEngine

public class GroovyTemplateEngine
extends groovy.text.TemplateEngine

This simple template engine uses JSP <% %> script and <%= %> expression syntax. It also lets you use normal groovy expressions in the template text much like the new JSP EL functionality. The variable 'out' is bound to the writer that the template is being written to.

Author:
sam

Nested Class Summary
private static class GroovyTemplateEngine.SimpleTemplate
           
 
Constructor Summary
GroovyTemplateEngine()
           
 
Method Summary
 groovy.text.Template createTemplate(java.io.Reader reader)
           
 
Methods inherited from class groovy.text.TemplateEngine
createTemplate, createTemplate, createTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyTemplateEngine

public GroovyTemplateEngine()
Method Detail

createTemplate

public groovy.text.Template createTemplate(java.io.Reader reader)
                                    throws org.codehaus.groovy.control.CompilationFailedException,
                                           java.lang.ClassNotFoundException,
                                           java.io.IOException
Throws:
org.codehaus.groovy.control.CompilationFailedException
java.lang.ClassNotFoundException
java.io.IOException


Copyright 2003 Ludovic Dubost