move all groovy-related code from "framework" to "fastergt"#316
move all groovy-related code from "framework" to "fastergt"#316
Conversation
|
It would be nice to reference issue #65 in the commit message. 🙏 |
| private void injectStaticFields() { | ||
| injectStaticFields(Play.classes.getAssignableClasses(PlayController.class)); | ||
| injectStaticFields(Play.classes.getAssignableClasses(Job.class)); | ||
| injectStaticFields(Play.classes.getAssignableClasses(FastTags.class)); |
There was a problem hiding this comment.
Just viewing the diff ... : do these lines have an alternative? Or can be implemented somehow?
There was a problem hiding this comment.
@xabolcs I just checked that classes FastTags and JavaExtensions do NOT have any static fields. Also, these classes don't have children. There is nothing to inject.
There was a problem hiding this comment.
Answering my own question: one could move the needed code to the plugin's onApplicationStart().
For example see what cies' did in PR #227!
f787af6 to
345ca3a
Compare
xabolcs
left a comment
There was a problem hiding this comment.
Not tested, but the diff looks good
|
There were talk about the If it's still valid, it would be nice to see a few words / snippet in the README, or just a link to an example test app in |
|
I find it odd that I'm not sure how you handle errors when the In order to test your PR, I'd move the test cases from my PR to your PR and see how they are handled. I'm afraid in your PR there is no way to serve "pretty error pages" without the My end goal is to completely free |
I suggest a very simple approach. |
I understand your concern. Yes, probably we should move all these classes to "fastergt" module. |
345ca3a to
f856c8f
Compare
May I ask to document this new |
This is not a new requirement, actually. :) Yes, we could write it to README, I think. |
it allows to fully avoid Groovy dependencies for users with another templating engine (e.g. Kotlin templates).
306f0de to
e6a7996
Compare
it allows to fully avoid Groovy dependencies for users with another templating engine (e.g. Kotlin templates).