Created
June 21, 2013 14:52
-
-
Save Bowbaq/5831720 to your computer and use it in GitHub Desktop.
Play 2.1 controller for integration with Satchel
This file contains 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 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