org.exoplatform.groovyscript.text
Class SimpleTemplateEngine

java.lang.Object
  extended by groovy.text.TemplateEngine
      extended by org.exoplatform.groovyscript.text.SimpleTemplateEngine

public class SimpleTemplateEngine
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, Christian Stein

Nested Class Summary
static class SimpleTemplateEngine.ExoScript
           
 
Constructor Summary
SimpleTemplateEngine()
           
SimpleTemplateEngine(boolean verbose)
           
 
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

SimpleTemplateEngine

public SimpleTemplateEngine()

SimpleTemplateEngine

public SimpleTemplateEngine(boolean verbose)
Method Detail

createTemplate

public groovy.text.Template createTemplate(java.io.Reader reader)
                                    throws org.codehaus.groovy.control.CompilationFailedException,
                                           java.io.IOException
Specified by:
createTemplate in class groovy.text.TemplateEngine
Throws:
org.codehaus.groovy.control.CompilationFailedException
java.io.IOException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.