apache / apache/grails-intellij-plugin
Lookup GSPs by Layout
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
In Grails' implementation of Sitemesh, GSP pages can have a <meta name=layout/> tag, where the value corresponds to a layout GSP page (such as the default 'main.gsp') under grails-app/view/layouts/. On a large project with both internal and external sides, it is possible to have a large number of layouts, each used by dozens of different pages. It would be extremely useful to be able to lookup all GSPs that are using a particular layout. So if I was viewing the "educational.gsp" layout, I could (for example) "CMD click" the meta name=layout tage, and be given a dropdown or context menu of all GSPs using this layout. Since the format for this tag is virtually standardized (there's little variation - the layouts are always where they belong), this shouldn't be a huge pain to track down - even if it just stuck with views that were "where they belong" under the views/ directory.
---
*Imported from [IDEA-60006](https://youtrack.jetbrains.com/issue/IDEA-60006) · Type: Feature · Votes: 1*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the plugin's existing GSP/Sitemesh support and how views under grails-app/view/layouts/ or the views/ directory are recognized. Determine where layout references can be discovered, then verify that selecting a layout such as educational.gsp presents the GSP pages using it through the requested dropdown or context menu.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- tooling, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100