<!DOCTYPE html>

<html>
    <head>
        <title>#{get 'title' /}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/main.css'}">
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
        <script src="@{'/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.
	    You can also <a href="@{Application.interactive}">interact</a> with your app in the browser if that is what you fancy.
        </p> 
        
        <div id="results">
            #{list results}
                <div class="print ${_parity}">
                    ${_}
                </div>
            #{/list}
        </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>
