playframework/Play20 — pull request #765 by nraychaudhuri (2013-02-22 00:09:32+00:00)
Title: changed documentation to create custom Assets

Please look at the issue http://play.lighthouseapp.com/projects/82401-play-20/tickets/1003-Routes-compiler-cant-handle-routes-file-name-that-has-more-than-6-dots for the details.

As it stands right now if you are creating subprojects with custom assets you have to do something like following:

```java
// Assets.java
package controllers.admin;
import play.api.mvc.*;

public class Assets {
public static Action at(String path, String file) {
return controllers.Assets.at(path, file);
}
}
```
The delegate approach doesn't work because RoutesCompiler will parse a.b.c.Assets.delegate.at(...) as:

package name: a.b.c.Assets
class name: delegate
method: at

And this results in compilation error. As of now I changed the doc but let me know if you guys can think of a better way to handle this issue.