Skip to content
tomakehurst edited this page Aug 21, 2011 · 19 revisions

Google Closure Templates for Spring MVC

Google Closure Templates (Soy Templates) is a web templating language that compiles to both Java and Javascript, allowing markup to be rendered client or server-side. This project integrates Closure Templates with Spring MVC, allowing them to be used as server-side Views (much like Freemarker or Velocity), and providing a convenient wrapper for compiling and serving templates as Javascript.

Adding to your Maven project

Add this to your POM's repositories element:

<repository>
  <id>tomakehurst-mvn-repo-thirdparty</id>
  <name>Tom Akehurst's 3rd party Maven Repo</name>
  <url>https://github.com/tomakehurst/tomakehurst-mvn-repo/tree/master/thirdparty</url>
  <layout>default</layout>
</repository>
<repository>
  <id>tomakehurst-mvn-repo</id>
  <name>Tom Akehurst's Maven Repo</name>
  <url>https://github.com/tomakehurst/tomakehurst-mvn-repo/tree/master/releases</url>
  <layout>default</layout>
</repository>

and this to your dependencies (substituting the latest version):

<dependency>
  <groupId>com.tomakehurst</groupId>
  <artifactId>spring-closure-templates</artifactId>
  <version>0.2</version>
</dependency>
Clone this wiki locally