The latest and greatest news from the Scalate team

Scalate Blog

Scalate 1.4.0 Released

Posted by James Strachan on Saturday, January 1, 2011

The Scalate team is pleased to announce the availability of Scalate 1.4.0

Scalate is a Scala 2.8.1 based template engine which can be used stand alone, with servlets or web frameworks like JAXRS, Lift or Play or in integration frameworks like Apache Camel.

The following template languages are supported through the same common API:

  • Ssp which is like a Scala version of Velocity, JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup along with the Jade syntax
  • Mustache which is a Scala dialect of Mustache for logic-less templates which also work inside the browser using mustache.js

All expressions inside Ssp, Scaml and Jade benefit from the full power and expressiveness of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Scalate 1.4.0 Highlights

  • upgraded to Scala 2.8.1
  • Mustache can now be used for creating layouts and refer to parts of the generated template by navigating the html section.
  • Added pygmentize, css, and cdata filters
  • Added Textile support
  • Added SBT plugins to support precompiling templates and executing sitegen projects
  • Improved OSGi support

For more detail see the Full Change Log

Feedback is always welcome!

Scalate 1.3.2 Released

Posted by James Strachan on Wednesday, November 24, 2010

The Scalate team is pleased to announce the availability of Scalate 1.3.2

Scalate is a Scala 2.8 based template engine which can be used stand alone, with servlets or web frameworks like JAXRS, Lift or Play or in integration frameworks like Apache Camel.

The following template languages are supported through the same common API:

  • Ssp which is like a Scala version of Velocity, JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup along with the Jade syntax
  • Mustache which is a Scala dialect of Mustache for logic-less templates which also work inside the browser using mustache.js

All expressions inside Ssp, Scaml and Jade benefit from the full power and expressiveness of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Scalate 1.3.2 Highlights

  • new set velocity directive in Ssp which lets you assign sections of the template output to attributes so you can more easily pass information into layouts.
  • minor refactoring of internal classes such as Resource and ResourceLoader from the org.fusesource.scalate.support package into the org.fusesource.scalate.util package to make the util package more stand alone and reuseable outside of Scalate.
  • scalate-util module now refactored out of scalate-core
  • both scalate-core and scalate-util now OSGi bundles

For more detail see the Full Change Log

Feedback is always welcome!

Scalate 1.3.1 Released

Posted by James Strachan on Wednesday, October 27, 2010

The Scalate team is pleased to announce the availability of Scalate 1.3.1.

Scalate is a Scala 2.8 based template engine which can be used stand alone, with servlets or web frameworks like JAXRS, Lift or Play or in integration frameworks like Apache Camel.

The following template languages are supported through the same common API:

  • Ssp which is like a Scala version of Velocity, JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup along with the Jade syntax
  • Mustache which is a Scala dialect of Mustache for logic-less templates which also work inside the browser using mustache.js

All expressions inside Ssp, Scaml and Jade benefit from the full power and expressiveness of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Scalate 1.3.1 Highlights

This release is mostly a bug fix release.

  • for folks migrating from Erb, Ssp now supports Erb style comments e.g.

    <%# this is a comment %>

  • ScalatePackage classes can now be properly auto-detected for templates which reside in the WEB-INF directory in a web application.

  • works inside OSGi containers
  • all documentation now correctly included in the distro

For more detail see the Full Change Log

Feedback is always welcome!

Scalate 1.3 Released

Posted by James Strachan on Friday, October 8, 2010

The Scalate team is pleased to announce the availability of Scalate 1.3.

Scalate is a Scala 2.8 based template engine which can be used stand alone, with servlets or web frameworks like JAXRS, Lift or Play or in integration frameworks like Apache Camel.

The following template languages are supported through the same common API:

  • Ssp which is like a Scala version of Velocity, JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup along with the Jade syntax
  • Mustache which is a Scala dialect of Mustache for logic-less templates which also work inside the browser using mustache.js

All expressions inside Ssp, Scaml and Jade benefit from the full power and expressiveness of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Scalate 1.3 Highlights

  • Jade template syntax is now supported which is a dialect of Haml or Scaml
  • New Servlet Filter which allows more flexible mapping of templates in a web application. For example you can have the request /foo.xml automatically bound to /foo.xml.ssp if the template exists letting you easily implement views without requiring a controller or routing in your MVC layer.
  • JSP Converter helps you migrate your existing JSP web application across to Scalate
  • HTML Converter lets you migrate your existing HTML files easily to Scaml or Jade for extra DRY markup
  • DRY template imports, values and logic thanks to Scalate Package objects which allow imports, values and methods to be shared across some or all of your templates to reduce noise inside your templates.
  • Site Generator lets you generate static or dynamic websites using templates and/or wiki markup together with exporting wiki content from Confluence wikis to migrate to using git/svn as your wiki content repository. You can also use a common bootstrap approach now across both static website generation and web applications - such as to configure wiki macros in a canonical way. We now eat our own dog food and generate this site using Scalate.
  • More filters and pipelines supported such as confluence as well as the existing markdown which are particularly useful for website generation (static or semi-static).
  • The Scalate Tool now comes with a full interactive shell with full tab completion to make it easier to use the tool either for ad hoc or interactive shell use.

For more detail see the Full Change Log

Feedback is always welcome!

Scalate 1.2 Released

Posted by James Strachan on Friday, July 30, 2010

The Scalate team is pleased to announce the availability of Scalate 1.2.

Scalate is a Scala 2.8 based template engine which can be used stand alone, with servlets or web frameworks like JAXRS, Lift or Play or in integration frameworks like Apache Camel.

The following template languages are supported through the same common API:

  • Ssp which is like a Scala version of Velocity, JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup
  • Mustache which is a Scala dialect of Mustache for logic-less templates which also work inside the browser using mustache.js

All expressions inside Ssp and Scaml benefit from the full power and expressiveness of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Scalate 1.2 Highlights

  • Scalate now supports the Mustache template language which is a Scala dialect of Mustache for logic-less templates which also work inside the browser using mustache.js. Support for Mustache uses the same common Scalate API so it works with all the existing Scalate adapters such as servlets, JAXRS, Lift or Play and Apache Camel
  • Scalate is now built on top of Scala 2.8.0 final release
  • Scuery for jQuery style transformation of HTML or XHTML using CSS3 selectors
  • the console can be more easily reused in your application without using WAR overlays and templates can be loaded via the classloader to help make more modular web applications without relying on WAR overlays
  • improvements in associating different template languages to files/URIs/strings/streams in a more flexible API
  • various improvements in the accuracy of the mapping of scala compiler errors to positions in the template source file which are then shown and linked in the console
  • improved maven plugin for precompiling templates

For more detail see the Full Change Log

Feedback is always welcome!

Scalate 1.1 Released

Posted by James Strachan on Thursday, April 15, 2010

The Scalate team is pleased to announce the availability of Scalate 1.1.

Scalate is a Scala 2.8 based template engine which can be used stand alone, with servlets, in JAXRS, with the Play Framework or in Apache Camel. (Work on lift integration is in progress).

All expressions inside Scalate benefit from the full power of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Two template languages are currently supported:

  • Ssp which is like a Scala version of Velocity, JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup

    Scalate 1.1 Highlights

  • Ssp now supports Velocity style directives for more concise looping and branching.

  • new Scalate Tool for creating new projects with Scalate more easily
  • improved API for working with templates from different sources (file, URL, Source, String etc) via the helper methods on TemplateSource object and methods on TemplateEngine which take a TemplateSource
  • easier to configure whitespace handling via the escapeMarkup property on TemplateEngine and RenderContext so its easy to configure markup escaping for an entire project or enable/disable it within templates.

For more detail see the Full Change Log

Feedback is always welcome!

Scalate 1.0 Released

Posted by James Strachan on Tuesday, April 6, 2010

The Scalate team is pleased to announce the availability of Scalate 1.0.

Scalate is a Scala 2.8 based template engine which can be used stand alone, with servlets, in JAXRS, with the Play Framework or in Apache Camel. (Work on lift integration is in progress).

All expressions inside Scalate benefit from the full power of Scala plus they are typesafe and checked at edit/compile time to ensure you don't leave any mistakes in your templates.

Two template languages are currently supported:

  • Ssp which is like a Scala version of JSP or Erb from Rails
  • Scaml which is a Scala dialect of Haml for very DRY markup

Further information:

Feedback is always welcome!