Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g:javascript documentation has dead link referring to resource plugin tag r:script #406

Open
monetschemist opened this issue Jan 4, 2024 · 0 comments

Comments

@monetschemist
Copy link

The g:javascript documentation found here 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> 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, 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 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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant