From 2f6780969318c08c7a0a0e8e52a7dad33ff53786 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 22 Jan 2015 20:58:09 +0100 Subject: Bootstrap Play Scala project --- app/controllers/Application.scala | 12 ++++++++++++ app/views/index.scala.html | 7 +++++++ app/views/main.scala.html | 15 +++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 app/controllers/Application.scala create mode 100644 app/views/index.scala.html create mode 100644 app/views/main.scala.html (limited to 'app') diff --git a/app/controllers/Application.scala b/app/controllers/Application.scala new file mode 100644 index 0000000..7cd798f --- /dev/null +++ b/app/controllers/Application.scala @@ -0,0 +1,12 @@ +package controllers + +import play.api._ +import play.api.mvc._ + +object Application extends Controller { + + def index = Action { + Ok(views.html.index("Your new application is ready.")) + } + +} \ No newline at end of file diff --git a/app/views/index.scala.html b/app/views/index.scala.html new file mode 100644 index 0000000..d6a6b22 --- /dev/null +++ b/app/views/index.scala.html @@ -0,0 +1,7 @@ +@(message: String) + +@main("Welcome to Play") { + + @play20.welcome(message) + +} diff --git a/app/views/main.scala.html b/app/views/main.scala.html new file mode 100644 index 0000000..5025aa5 --- /dev/null +++ b/app/views/main.scala.html @@ -0,0 +1,15 @@ +@(title: String)(content: Html) + + + + + + @title + + + + + + @content + + -- cgit v1.2.3