Created
August 20, 2013 13:30
-
-
Save potato2003/6281430 to your computer and use it in GitHub Desktop.
Scala の ちょっとかっこいい implicit parameter
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
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