scalate

Scala Template Engine: like JSP without the crap but with added Scala coolness

Scalate: Scala Template Engine

Scalate is a Scala 2.8 based template engine which can be used in the following environments

Scalate supports the following template formats

All expressions inside Scalate templates are typesafe and checked at edit/compile time to ensure you don’t leave any mistakes in your pages. You can reuse Scala’s powerful functions, closures and matchers as well as invoking Scala methods can use Scala’s XML support to return page fragments.

Scalate templates generate Scala code which is compiled to fast statically typed method dispatch bytecode rather than using dynamic dispatch or reflection. Hopefully IDEs will soon be able to support full completion of all scala expressions within scalate template files.

Compared to JSP, Scalate misses out lots of stuff like EL, JSTL, tag libraries, tag files, JSP header files and lots of other stuff. In its place, Scalate reuses the Scala language which is way more powerful and expressive than the EL in JSP.

Getting started

Try checkout the Documentation