Skip to content

Instantly share code, notes, and snippets.

@potato2003
Created August 20, 2013 13:30
Show Gist options
  • Save potato2003/6281430 to your computer and use it in GitHub Desktop.
Save potato2003/6281430 to your computer and use it in GitHub Desktop.
Scala の ちょっとかっこいい implicit parameter
object Application extends Controller {
implicit val charset = Codec.javaSupported("iso-8859-1")
def index = Action {
Ok(<h1>hello</h1>).as(HTML)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment