(Quick Reference)
install-optimus-templates
Purpose
The
install-optimus-templates
generates the necessary templates for a domain class.
Examples
grails install-optimus-templates
Description
This command generates the necessary templates for a domain class. The command will generate the following files:
src/templates/scaffolding/_content.gsp
src/templates/scaffolding/_list.gsp
src/templates/scaffolding/_form.gsp
src/templates/scaffolding/renderEditor.template
The command overrides some important files that could already exist:
src/templates/scaffolding/_form.gsp
src/templates/scaffolding/renderEditor.template
.
For this reason, use the install-optimus-templates command carefully if you are working on an existing application.
Usage:
grails install-optimus-templates