@CompileStatic class WritableScriptTemplate extends Object implements Template
A base template class that all Grails view templates should extend from
| Modifiers | Name | Description |
|---|---|---|
protected Map<String, VariableSetter> |
modelSetters |
| Type | Name and description |
|---|---|
long |
lastModifiedThe last modified stamp of the source file. -1 if no source file. |
boolean |
prettyPrintWhether to pretty print the template |
File |
sourceFileThe source file of the template. |
Class<? extends GrailsView> |
templateClassThe class of the template |
String |
templatePathThe resolved template path |
| Constructor and description |
|---|
WritableScriptTemplate(Class<? extends GrailsView> templateClass) |
WritableScriptTemplate(Class<? extends GrailsView> templateClass, File sourceFile) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
getParentPath()The path to the parent directory that containers the template |
|
protected void |
initModelTypes(Class<? extends WritableScript> templateClass) |
|
Writable |
make() |
|
Writable |
make(Map binding) |
|
boolean |
wasModified()
|
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