-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Allow for specifying imports at beginning of templates #1
Comments
@pvlugter several people were asking for this awhile back (@siasia @diwa and others). this was something that had always frustrated me as well, so I took a stab at implementing it. the pull request languished for awhile because the core devs understandably didn't want to be editing the templates while trying to split them out into a separate project. it looks like twirl is alive and well now so this might be a good time to revisit. unfortunately, i'm absolutely slammed at work right now and am not going to have much of a chance to make any updates to the pull request. i think it should be relatively close. do you think you'd be able to run with it from here? |
@benmccann sure, no problem. |
that's awesome. thanks so much! |
that's awesome. thank you!! |
Fix varargs compilation for Scala 2.13.0
Right now you have to specify imports after the template declaration:
This seems odd because it's not how Java/Scala classes work and also because it results in much more typing than the alternative:
I took a stab at implementing this here: playframework/playframework#1661
The text was updated successfully, but these errors were encountered: