jdaugherty opened a new issue, #77:
URL: https://github.com/apache/grails-intellij-plugin/issues/77

   Suggestion for a new refactoring: to support the DRY principle it would be 
useful to have a 'extract GSP template' refactoring.
   
   In a gsp file the user highlights the snippet to be extracted. When 
selecting the refactoring the following actions should occur:
   - ask for the name of the gsp template to be created
   - insert the snippet into a newly created template gsp
   - remove the snippet from the current page by a `<g:render 
template="templatename">` tag
   
   See 
[http://www.grails.org/doc/latest/guide/6.%20The%20Web%20Layer.html#6.2.3%20Views%20and%20Templates](http://www.grails.org/doc/latest/guide/6.%20The%20Web%20Layer.html#6.2.3%20Views%20and%20Templates)
 for some doc on this.
   
   In a more advanced version, IntelliJ could probably also take care of the 
other attributes of the render tag.
   
   ---
   
   *Imported from [IDEA-66286](https://youtrack.jetbrains.com/issue/IDEA-66286) 
· Type: Feature · Votes: 6*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to