We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Webjars-play only supports the Assets.at route (located in the nastyReflection).
Assets.at
If I have an assets route like this
GET /assets/file controllers.Assets.versioned(path="public", file: Asset)
Results in an InvocationTargetException, because the at method is not there.
InvocationTargetException
at
The text was updated successfully, but these errors were encountered:
I think that I might just remove that functionality because it is pretty brittle. Here is what you can use instead:
<script> @play.api.Play.current.configuration.getString("assets.url").fold { @Html(org.webjars.RequireJS.getSetupJavaScript(routes.WebJarAssets.at("").url)) } { assetsUrl => @Html(org.webjars.RequireJS.getSetupJavaScript(StaticWebJarAssets.url(""), routes.WebJarAssets.at("").url)) } </script> <script data-main="@routes.Assets.versioned("javascripts/app.js")" src="@StaticWebJarAssets.url(WebJarAssets.locate("require.min.js"))"></script>
From: https://github.com/jamesward/salesforce-webhook-creator/blob/master/app/views/app.scala.html
LMKWYT
Sorry, something went wrong.
No branches or pull requests
Webjars-play only supports the
Assets.at
route (located in the nastyReflection).If I have an assets route like this
Results in an
InvocationTargetException
, because theat
method is not there.The text was updated successfully, but these errors were encountered: