clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1037866 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scala/src/main/scala/org/apache/clerezza/platform/typerendering/scala/RenderedPage.scala
Date Mon, 22 Nov 2010 20:16:04 GMT
Author: reto
Date: Mon Nov 22 20:16:03 2010
New Revision: 1037866

URL: http://svn.apache.org/viewvc?rev=1037866&view=rev
Log:
CLEREZZA-362: supporting any object as return value of the content method

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scala/src/main/scala/org/apache/clerezza/platform/typerendering/scala/RenderedPage.scala

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scala/src/main/scala/org/apache/clerezza/platform/typerendering/scala/RenderedPage.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scala/src/main/scala/org/apache/clerezza/platform/typerendering/scala/RenderedPage.scala?rev=1037866&r1=1037865&r2=1037866&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scala/src/main/scala/org/apache/clerezza/platform/typerendering/scala/RenderedPage.scala
(original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.typerendering.scala/src/main/scala/org/apache/clerezza/platform/typerendering/scala/RenderedPage.scala
Mon Nov 22 20:16:03 2010
@@ -63,11 +63,14 @@ abstract class RenderedPage(arguments: R
 	val out = new PrintWriter(os)
 
 	out.println(
-		content
+		content match {
+			case s: Seq[_] => s.mkString
+			case o => o.toString
+		}
 	)
 	out.flush()
 
-	def content : Elem;
+	def content : AnyRef;
 
 
 }



Mime
View raw message