@groovy.transform.CompileStatic class WritableScriptTemplate extends java.lang.Object
A base template class that all Grails view templates should extend from
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.String, VariableSetter> |
modelSetters |
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 | 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() @return Whether the template has been modified |
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() |
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