com.xpn.xwiki.render.groovy
Class XWikiSimpleTemplateEngine

java.lang.Object
  extended by groovy.text.TemplateEngine
      extended by com.xpn.xwiki.render.groovy.XWikiSimpleTemplateEngine

public class XWikiSimpleTemplateEngine
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.


Constructor Summary
XWikiSimpleTemplateEngine()
           
 
Method Summary
 groovy.text.Template createTemplate(Reader reader)
           
static void flushCache()
           
 
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

XWikiSimpleTemplateEngine

public XWikiSimpleTemplateEngine()
Method Detail

createTemplate

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

flushCache

public static void flushCache()


Copyright © 2004-2013 XWiki. All Rights Reserved.