@(results:Seq[String])

<!DOCTYPE html>

<html>
    <head>
        <title>Play with Scala</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" media="screen" href="@asset("public/stylesheets/main.css")">
        <link rel="shortcut icon" type="image/png" href="@asset("public/images/favicon.png")">
        <script src="@asset("public/javascripts/jquery-1.4.2.min.js")" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        
        <h1>Play with scala</h1>
        <h2>— the easiest way to learn scala</h2>
        
        <p>
            Life’s too short to not play with scala. You've got the easiest way to learn it. Just edit the <a href="@play.utils.Utils.open("app/scrapbook.scala", 1)">scrapbook.scala</a> file and refresh this page;
            it will execute the Scrapbook class and display all results of print(…) calls here.
        </p> 
        
        <div id="results">
            @results.zipWithIndex.map { e =>
                <div class="print @(if(e._2 % 2 == 0) "even" else "odd")">
                    @e._1
                </div>
            }
        </div>
        
        <h3>Resources,</h3>
        
        <p>
            New to scala? Here is a set of resources that will help you start:
        </p>
        
        <ul>
            <li><a href="http://www.codecommit.com/blog/scala/roundup-scala-for-java-refugees">Scala for Java Refugees</li>
            <li><a href="http://programming-scala.labs.oreilly.com/">Programming scala</a></li>
            <li><a href="http://aperiodic.net/phil/scala/s-99/">Ninety-Nine Scala Problems</a></li>
            <li><a href="http://www.scala-lang.org">And of course the official scala website</a></li>            
        </ul>
        
        <h4>Wait, there's more,</h4>
        
        <p>
            If you think playing with scala is fun, wait until you start coding a real web application with it. 
            <a href="http://www.playframework.org">Play! framework</a> is the easiest way to create a web application with Java and it has
            a <a href="http://www.playframework.org/modules/scala">scala module</a>.
        </p>
        
        <div id="footer">
            Play with scala is brought to you by <a href="http://guillaume.bort.fr">guillaume bort</a> and is part of the <a href="http://www.playframework.org/modules/scala">play scala module</a> distribution
        </div>
        
    </body>
</html>
