Jivings
Jivings

Reputation: 23260

Working with public assets throws compilation error

When I'm attempting to work with public assets (as documented here) I'm receiving compilation errors. This is my route and the error it throws:

GET     /assets/*file               controllers.Assets.at("public", file) 
                                                          ^
`)' expected but `"' found

Can anyone shed any light on this? Am I using a deprecated method of serving assets?

Upvotes: 1

Views: 99

Answers (1)

biesior
biesior

Reputation: 55798

Use this route as hotfix:

GET    /assets/*file     controllers.Assets.at(path="/public", file)

note: as we can see, the documentation still needs some fixing.

edit: For details please check the github/wiki version of the doc, it's debbuged now: http://github.com/playframework/Play20/wiki/Assets

Upvotes: 2

Related Questions