Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-RC2
-
Fix Version/s: 1.1-RC1
-
Component/s: View technologies
-
Labels:None
-
Environment:n/a
Description
Seems only natural that there would be a way to override the default controller-to-layout-by-name convention. (specifying in each view doesn't really count and violates DRY)
class MyAccountController {
static layout = "main"
...
}
You can, if you have a controller BookController just create a layout called:
grails-app/views/layouts/book.gsp
You can also do per action layouts:
grails-app/views/layouts/book/list.gsp