scalate

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

Scalate: Scala Template Engine

Scalate is a Scala based template engine. Scalate can be used stand alone or as a servlet or renderer when using JAXRS with Jersey.

Scalate supports the following languages

Compared to JSP, SSP 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. You can also invoke methods in regular Scala code which can use Scala’s XML support to return page fragments.

All expressions inside Scalate templates are typesafe and checked at edit/compile time to ensure you don’t leave any mistakes in your pages. Also since Scalate is based on Scala it generates 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.

The code is based on serverpages by Matt Hildebrand

Getting started

Try checkout the user guide