by shigemk2


play-scalaのごにょごにょ その1

The first line defines the function signature. Here it takes a single String parameter. Then the template content mix HTML (or any text based language) with Scala statements. The Scala statements starts with the special @ character.

With this change the index action will now respond with a simple text/plain Hello world response.


関数はdef Okで出力。