I have a question about the pros and cons of g: render and g: include. In my application, I have a piece of code that shows some information that needs to be repeated in some gsp, what it shows depends on a bit of logic.I have doubts that it is better to use g: include or g: render?So, is it better to execute the logic on the controller, which passes the model to the page using the layout included in g: render, or is it better to set ag: to include in another action in another controller in gsp, which performs the logic of this part?I prefer the second choice, but how much does this affect performance?
. <g:include .../>, , , GSP. , , , .
<g:include .../>
<g:render.../> , . AJAX, , - AJAX.
<g:render.../>
, .
g: , , .. , ( ) , , (), g: include. g: include, , , . " " " ".