updated
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Wed, 17 Sep 2014 11:47:11 +0100
changeset 161 a0aebea668f9
parent 160 4cbd6ca025e6
child 162 5031e7778fdb
updated
progs/Application0.scala
--- a/progs/Application0.scala	Tue Sep 16 11:31:55 2014 +0100
+++ b/progs/Application0.scala	Wed Sep 17 11:47:11 2014 +0100
@@ -1,5 +1,6 @@
 package controllers
 
+import play.api._
 import play.api.mvc._
 
 // hello world program: 
@@ -8,9 +9,9 @@
 object Application extends Controller {
 
   // answering a GET request
-  val index = Action { request =>
-
-    Ok("<H1>Hello world!</H1>").as(HTML)
+  def index = Action {
+    Ok(views.html.index("222Your new application is ready."))
+    //Ok("Hello World")
   }  
   
 }