Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding a Hello World example to the website.
Scalatra is very quick (and fun) to get started with, I think we need to get people excited about using it rather 
than just telling them how to install the dependency chain.
  • Loading branch information
Dave Hrycyszyn committed Mar 8, 2012
1 parent ba30306 commit fd92e8c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/index.page
Expand Up @@ -6,6 +6,20 @@ link{:type => "text/css",
:href => "/css/book.css"}
--- name:content pipeline:markdown

## Hello from Scalatra!

{pygmentize:: scala}
package com.example.app
import org.scalatra._

class HelloFilter extends ScalatraFilter {

get("/hello/:name") {
Hello, {params("name")}
}
}
{pygmentize}


## Quick start

Expand Down

0 comments on commit fd92e8c

Please sign in to comment.