Created
October 1, 2014 17:28
-
-
Save bigjason/1a5f487f5ff61d2ec08b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package services | |
| import play.api.mvc.RequestHeader | |
| object ConcatService { | |
| object PublishPage { | |
| val name = "publish-page.js" | |
| val files = Vector("javascripts/vendor/sidr.js", "javascripts/vendor/plugins.js", "javascripts/entry/entry.js", "javascripts/entry/entry-stats.js") | |
| def path(implicit context: AssetContext, rh: RequestHeader) = AssetService.at(name) | |
| def filePaths(implicit context: AssetContext, rh: RequestHeader) = files.map(f => AssetService.at(f)) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment