With sitemesh possible to use different layout for same pages. For example for mobile and PC users
But how to do this with grails? In documentation and article nothing about this case written I have tried tag in view.gsp, not working
<meta name="layout" content="${defineLayout()}"/>
Any ideas?
By grails code exploration I have found GroovyPageLayoutFinder class it has line
I can just put org.grails.layout.name attribute to request in Interceptor. It works like a charm!