@groovy.transform.CompileStatic class TemplateRendererImpl extends java.lang.Object
Interface for classes that can render templates
| Type | Name and description |
|---|---|
ExecutionContext |
executionContext |
FileSystemInteraction |
fileSystemInteraction |
Profile |
profile |
ProfileRepository |
profileRepository |
| Constructor and description |
|---|
TemplateRendererImpl
(ExecutionContext executionContext, ProfileRepository profileRepository, org.grails.io.support.ResourceLoader resourceLoader = new DefaultResourceLoader() |
TemplateRendererImpl
(ExecutionContext executionContext, Profile profile, ProfileRepository profileRepository, org.grails.io.support.ResourceLoader resourceLoader = new DefaultResourceLoader() |
| Type | Name and description |
|---|---|
void |
render(java.util.Map<java.lang.String, java.lang.Object> namedArguments)Render with the given named arguments |
void |
render(java.lang.CharSequence template, java.io.File destination, grails.codegen.model.Model model)Render the given template to the give destination for the given model |
void |
render(java.lang.CharSequence template, java.io.File destination, java.util.Map model = Collections.emptyMap(, boolean overwrite = false)Render the given template to the given destination |
void |
render(java.io.File template, java.io.File destination, grails.codegen.model.Model model)Render the given template to the give destination for the given model |
void |
render(java.io.File template, java.io.File destination, java.util.Map model = Collections.emptyMap(, boolean overwrite = false)Render the given template to the given destination |
void |
render(org.grails.io.support.Resource template, java.io.File destination, grails.codegen.model.Model model, boolean overwrite = false)Render the given template to the give destination for the given model |
void |
render(org.grails.io.support.Resource template, java.io.File destination, java.util.Map model = Collections.emptyMap(, boolean overwrite = false)Render the given template to the given destination |
org.grails.io.support.Resource |
template(java.lang.Object location)Find a template at the given location |
java.lang.Iterable<org.grails.io.support.Resource> |
templates(java.lang.String pattern)Find templates matching the given pattern |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Render with the given named arguments
namedArguments - The named arguments are 'template', 'destination' and 'model'Render the given template to the give destination for the given model
template - The contents templatedestination - The destinationmodel - The modelRender the given template to the given destination
template - The contents of the templatedestination - The destinationmodel - The modelRender the given template to the give destination for the given model
template - The templatedestination - The destinationmodel - The modelRender the given template to the given destination
template - The templatedestination - The destinationmodel - The modelRender the given template to the give destination for the given model
template - The contents templatedestination - The destinationmodel - The modelRender the given template to the given destination
template - The templatedestination - The destinationmodel - The modelFind a template at the given location
location - The locationFind templates matching the given pattern
pattern - The patternGroovy Documentation