@groovy.transform.CompileStatic class WritableScriptTemplate extends java.lang.Object implements groovy.text.Template
A base template class that all Grails view templates should extend from
Modifiers | Name | Description |
---|---|---|
private static class |
WritableScriptTemplate.FieldSetter |
|
private static class |
WritableScriptTemplate.MethodSetter |
|
private static interface |
WritableScriptTemplate.VariableSetter |
Modifiers | Name | Description |
---|---|---|
private long |
lastModified |
The last modified stamp of the source file. -1 if no source file. |
protected java.util.Map<java.lang.String, VariableSetter> |
modelSetters |
|
private boolean |
prettyPrint |
Whether to pretty print the template |
private java.io.File |
sourceFile |
The source file of the template. |
private java.lang.Class<? extends GrailsView> |
templateClass |
The class of the template |
private java.lang.String |
templatePath |
The resolved template path |
Type | Name and description |
---|---|
long |
lastModified The last modified stamp of the source file. -1 if no source file. |
boolean |
prettyPrint Whether to pretty print the template |
java.io.File |
sourceFile The source file of the template. |
java.lang.Class<? extends GrailsView> |
templateClass The class of the template |
java.lang.String |
templatePath The resolved template path |
Constructor and description |
---|
WritableScriptTemplate
(java.lang.Class<? extends GrailsView> templateClass) |
WritableScriptTemplate
(java.lang.Class<? extends GrailsView> templateClass, java.io.File sourceFile) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getParentPath() The path to the parent directory that containers the template |
|
protected void |
initModelTypes(java.lang.Class<? extends WritableScript> templateClass) |
|
groovy.lang.Writable |
make() |
|
groovy.lang.Writable |
make(java.util.Map binding) |
|
boolean |
wasModified()
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
The last modified stamp of the source file. -1 if no source file.
Whether to pretty print the template
The source file of the template. Will be null in pre-compiled mode.
The class of the template
The resolved template path
The last modified stamp of the source file. -1 if no source file.
Whether to pretty print the template
The source file of the template. Will be null in pre-compiled mode.
The class of the template
The resolved template path
The path to the parent directory that containers the template
Groovy Documentation