Skip to content

Instantly share code, notes, and snippets.

@Bowbaq
Created June 21, 2013 14:52
Show Gist options
  • Save Bowbaq/5831720 to your computer and use it in GitHub Desktop.
Save Bowbaq/5831720 to your computer and use it in GitHub Desktop.
Play 2.1 controller for integration with Satchel
package controllers
import play.api._
import play.api.mvc._
import org.ds.satchel._
object Satchels extends Controller {
def asset(file: String) = Action {
if(!Satchel.exists(file)) {
NotFound
} else {
Ok(Satchel.find(file).processed)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment