|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.text.TemplateEngine org.codehaus.groovy.grails.support.ResourceAwareTemplateEngine
public abstract class ResourceAwareTemplateEngine extends groovy.text.TemplateEngine
An abstract TemplateEngine that extends the default Groovy TemplateEngine (
Method Summary | |
---|---|
groovy.text.Template
|
createTemplate(org.springframework.core.io.Resource resource)
Creates the specified Template using the given Spring Resource |
groovy.text.Template
|
createTemplate(org.springframework.core.io.Resource resource, boolean cacheable)
Creates the specified Template using the given Spring Resource |
groovy.text.Template
|
createTemplate(java.io.Reader reader)
|
groovy.text.Template
|
createTemplate(java.io.InputStream inputStream)
Unlike groovy.text.TemplateEngine, implementors need to provide an implementation that operates with an InputStream |
groovy.text.Template
|
createTemplate(java.lang.String templateText)
|
groovy.text.Template
|
createTemplate(java.io.File file)
|
groovy.text.Template
|
createTemplate(java.net.URL url)
|
Methods inherited from class groovy.text.TemplateEngine | |
---|---|
groovy.text.TemplateEngine#createTemplate(java.net.URL), groovy.text.TemplateEngine#createTemplate(java.io.File), groovy.text.TemplateEngine#createTemplate(java.lang.String), groovy.text.TemplateEngine#createTemplate(java.io.Reader), groovy.text.TemplateEngine#wait(), groovy.text.TemplateEngine#wait(long, int), groovy.text.TemplateEngine#wait(long), groovy.text.TemplateEngine#equals(java.lang.Object), groovy.text.TemplateEngine#toString(), groovy.text.TemplateEngine#hashCode(), groovy.text.TemplateEngine#getClass(), groovy.text.TemplateEngine#notify(), groovy.text.TemplateEngine#notifyAll() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public groovy.text.Template createTemplate(org.springframework.core.io.Resource resource)
resource
- The Spring Resource to create the template for
public groovy.text.Template createTemplate(org.springframework.core.io.Resource resource, boolean cacheable)
resource
- The Spring Resource to create the template forcacheable
- Whether the resource can be cached
@Override public final groovy.text.Template createTemplate(java.io.Reader reader)
public groovy.text.Template createTemplate(java.io.InputStream inputStream)
inputStream
- The InputStream
@Override public groovy.text.Template createTemplate(java.lang.String templateText)
@Override public groovy.text.Template createTemplate(java.io.File file)
@Override public groovy.text.Template createTemplate(java.net.URL url)
Groovy Documentation