-
Notifications
You must be signed in to change notification settings - Fork 951
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
Grails multi-project resource loading problem #11014
Comments
As a workaround, if you move the file to Can you please explain what do you want to achieve so we can help you? |
I know about this workaround, but imagine that you have a lot of plugins that main-app includes, in this case, you will have a total mess in the end, so I would like to hold my resources separately for each plugin. Also, I found another issue with resources. If I place my css or js files in |
And why don't you want to put them your public resources (html, js, css,...) in the |
No problems, I can put them in |
Thank you very much! |
But what about the first case? I would really like to have my .html files separately in each web plugin and also load them using |
What I don't understand is why you use a TagLib to load html files that are public instead of access them as a static resource and letting asset-pipeline plugin to do it for you. |
I use TagLib to provide behavior for my .gsp to render .html files, they are not public except css, js files. |
Why can't you use .gsp files instead of .html files? With that you can leverage on Grails template resolution and you don't need to write your own resource locator. Please keep in mind that you can you rename a .html file to .gsp and it will work. |
Hi guys. I'm trying to create a multi-module project, and I'm getting an issue with grailsResourceLocator.findResourceForURI(...). It seems that resource locator can locate resources only in main application module but not in included plugins, so it always returns 'null'.
Task List
Steps to Reproduce
grails create-app main-app --profile=web
grails create-plugin web-plugin --profile=web-plugin
Expected Behaviour
demo.html was rendered to UI
Actual Behaviour
Exception is thrown
Environment Information
Example Application
The text was updated successfully, but these errors were encountered: