Opt. Getting Started


Route(auto) => Controller => View


Controller App


object App extends Controller {
    def show = Template
}

View App/show.html


<h1>Hello</h1>

TRY IT !!



Route(auto) => Controller => View with args


Controller App


object App extends Controller {
    def show = Template('name -> "Jack")
}

View App/show.html


<h1>Hello ${name}</h1>


Route(auto) => Controller with args => View with args


Controller App


object App extends Controller {
    def show(name: String) = Template('name -> name)
}

View App/show.html


<h1>Hello ${name}</h1>




Comments