monetschemist opened a new issue, #14204:
URL: https://github.com/apache/grails-core/issues/14204

   The `g:javascript` documentation found 
[here](https://gsp.grails.org/latest/ref/Tags/javascript.html) contains this 
text:
   
   If you use this tag to render inline JavaScript code, it is recommended that 
you use the Resources plugin’s 
[<r:script>](https://grails-plugins.github.com/grails-resources/ref/Tags/script.html)
 tag to produce inline script that is included at the end of the body, or in 
the head if necessary - rather than inline. For more control use the Resources 
plugin’s <r:script> tag directly.
   
   The link provided generates a 404 which suggests trying [this alternative 
URL](https://grails-plugins.github.io/grails-resources/ref/Tags/script.html), 
which leads to some documentation about Resources Plugin version 1.2.14, which 
I believe to be old and possibly outdated given its "old Grails" styling.
   
   I'm wondering if this is some indication that the `g:javascript` 
documentation needs some more profound updates, since the Sitemesh chapter 
[elsewhere in the GSP 
documentation](https://gsp.grails.org/latest/guide/index.html#layouts) explains 
a completely different approach, using `g:pageProperty` in the layout and 
`<content>` in the page to be decorated as a way to get Javascript in a given 
page to appear after all the Javascript asset pipeline "includes".


-- 
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