Skip to content
Using Twirl Templates with Scalatra
Scala
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
project
src
.gitignore
README.md
build.sbt

README.md

Scalatra and Twirl Templates

Using Twirl templates in Scalatra is absurdly easy and it's way better than Scalate.

The index.scala.html sample template takes a single parameter while the TwirlViews servlet knows how to render it.


  1. Launch SBT.

    ./sbt
    
  2. Run Jetty

    container:start
    
  3. Go to http://localhost:8080/.

  4. Learn more at http://www.scalatra.org/stable/book.

  5. Happy hacking!

Something went wrong with that request. Please try again.