I am new to Play Framework and am looking at a sample application bootstrapped with play new. When I start the application in dev mode without making any changes, there is a bunch of welcome text + markup. It looks like this is all getting drawn from @play20.welcome(message). I see the main layout, main.scala.html and the action's template itself, index.scala.html. I don't however see, where all of this additional markup is from when visiting the home page on a new bootstrapped Play 2.1.2 application via http://localhost:9000
Where is all of that markup coming from?
It comes from the Play distribution itself, you can take a look at the source code: https://github.com/playframework/Play20/blob/2.1.2/framework/src/play/src/main/scala/views/play20/welcome.scala.html
There is a template file called welcome.scala.html. You can find it under
$YOUR_PLAY_DIR/framework/src/play/src/main/scala/views/play20/welcome.scala.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With