How does Grails know to apply a “layout” to pages it renders?
The <meta name=”layout” content=”main”> tag includes the layout in the gsp page. You can view the grails-app/views/layouts/main.gsp to view and modify the layout. You can copy main.gsp to mymain.gsp, modify it, then change layout entry in the gsp page to reference mymain.gsp instead of main.gsp and experiment with customizing your layout preserving your ability to … Read more