mjhugo / grails-build-info

Provides a Grails controller/view that display basic information about a deployed WAR file
Other
8 stars 14 forks source link

Allow client app to apply a layout to buildInfo/index.gsp #16

Open nickdos opened 8 years ago

nickdos commented 8 years ago

Currently the index page is rendered without any header/footer. I am currently overriding this page in my client Grails app and adding a layout meta tag but I'd prefer not to have to do this, as it could come unstuck in a future version.

My suggestion is to add a meta tag to index.gsp with:

<meta name="layout" content="${grailsApplication.config.buildInfoLayout?:''}"/>

If the client app chooses not to populate the var then it behaves as it currently does, but setting it to the name of their layout file (e.g. main), applies that layout.