@(title:String)

<link rel="stylesheet" href="@asset("public/playmanual/manual.css")" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="@asset("public/playmanual/wiki.css")" type="text/css" media="screen" charset="utf-8">

<div class="wrapper">

    <div id="docSidebar">
        
        <div id="logo">
            <img src="@asset("public/playmanual/logo.png")">                
            <h2 id="version">Play @play.Play.version</h2>
        </div>

        <h2>Browse</h2>
        <ul>
            <li id="gotoc"><a href="/@@documentation/home">Local documentation</a></li>
            <li id="gotoc"><a href="/@@documentation/modules/scala/home">Scala module documentation</a></li>
            <li id="gotoc"><a href="/@@api/index.html">Browse Java API</a></li>
        </ul>

        <h2>Contents</h2>
        <div id="toc"></div>

        <h2>Search</h2>
        <p>Get help with google</p>
        <div id="searchBox"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="002614023023983855063:jn1mu_7bof0" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="28" style="font-size:14px"/></div></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></div>

    </div>

    <div id="pageContent">

        <div class="wikistyle">
            <h1>@title</h1>
            <p>
                Congratulation, you've just created a new Scala Play application. This page will help you in the few next steps.
            </p>
            <h2><a name="why">Why do you see this page?</a></h2>
            <p>
                The <strong>conf/routes</strong> file defines a route that tell play to invoke the <strong>Application.index</strong> action
                when a browser requests the <strong>/</strong> URI using the <strong>GET</strong> method:
            </p>
            <pre><code># Application home page
GET     /         Application.index</code></pre>
            <p>
                So play has invoked the <strong>controllers&#46;Application&#46;index</strong> method:
            </p>
            <pre><code>package controllers

import play._
import play.mvc._

object Application extends Controller {

    import views.Application._

    def index = {
        html.index("Your Scala application is ready!")
    }

}</code></pre>
            <p>
                The action returns the HTML content generated by the <strong>views.Application.html.index</strong> template. 
                This template is defined in the <strong>app/views/Application/index.scala.html</strong> file:
            </p>
            <pre><code>@@(title:String)

@@main(title) {

    @@views.defaults.html.welcome(title)

}</code></pre>
            <p>
                This template extends the <strong>app/views/main.scala.html</strong> template, and call <strong>views.defaults.html.welcome</strong> to display this
                welcome page.
            </p>
            <h2><a name="db">Need to connect to a database?</a></h2>
            <p>
                You can quickly set up a developement database (either in memory or written to the filesystem), by adding one of these
                lines to the <strong>conf/application.conf</strong> file:
            </p>
<pre><code># For a transient in memory database (H2 in memory)
db=mem

# for a simple file written database (H2 file stored)
db=fs</code></pre>
            <p>
                If you want to connect to an existing <strong>MySQL5 server</strong>, use:
            </p>
<pre><code>db=mysql:user:pwd@@database_name</code></pre>            
            <p>
                If you need to connect to another JDBC compliant database, first add the corresponding driver library to the
                <strong>lib/</strong> directory of your application, and add these lines to the <strong>conf/application.conf</strong> file:
            </p>
            <pre><code>db.url=jdbc:postgresql:database_name
db.driver=org.postgresql.Driver
db.user=root
db.pass=secret</code></pre>      
            <h2><a name="doc">Need more help?</a></h2>
            <p>
                When your application run in <strong>DEV</strong> mode, you can access directly the current documentation at the
                <a href="/@@documentation">/@@documentation</a> URL or go to <a href="http://www.playframework.org">http://www.playframework.org</a>.
            </p>
            <p>
                The Scala specific documentation is available at <a href="/@@documentation/modules/scala/home">/@@documentation/modules/scala/home</a>
            </p>
            <p>
                The <a href="http://groups.google.com/group/play-framework">Play Google Group</a> is where Play users come to seek help, announce projects, and discuss. 
                If you don't have any google account, you can still join the mailing list sending an email to
                <br/><strong>play-framework+subscribe@@googlegroups.com</strong>.
            </p>
        </div>
    </div>
            
        </div>

    </div>

</div>

<script type="text/javascript" src="@asset("public/playmanual/jquery-1.3.2.min.js")"></script>
<script type="text/javascript" src="@asset("public/playmanual/navigation.js")"></script>
