(Quick Reference)

create-views-index

Purpose

The create-views-index generates the base views of the application

Examples

grails create-views-index

Description

This command creates the base views of the application. The command will generate the following files:

  • grails-app/views/index.gsp
  • grails-app/views/_header.gsp
  • grails-app/views/_topMenu.gsp
  • grails-app/views/_menu.gsp

The command overrides some important files that could already exist:
  • grails-app/views/index.gsp

For this reason, use the create-views-index command carefully if you are working on an existing application.

Usage:

grails create-views-index