Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Velocity Plugin for Play2 framework
Latest commit ea7f0a0 @flysheep1980 flysheep1980 release 1.3
Failed to load latest commit information.
plugin/src only bug #13 fix and release 1.1
project release 1.3
samples/scala add copyright to scala files.
.gitignore first commit
LICENSE first commit release 1.3

Velocity Plugin for Play2 framework

supported play version is 2.0.x, 2.1.x and 2.2.x.

In addition, also support scala project.

What is Velocity?

See Apache Velocity Site

Release Note

Version Release Date Description
1.1 2013/04/08 enhancement #5 #12
1.1.1 2013/09/18 bug fixed #13
1.2 2014/01/10 supported play 2.2.x
1.3 2015/06/17 CrossBuild Scala2.10/2.11


1. Install Plugin.

Edit file project/Build.scala or build.sbt

libraryDependencies ++= Seq(
  "jp.furyu" %% "play-velocity-plugin" % "LATEST_VERSION"

Edit file conf/play.plugins

2. Call VM Function in your Controller.


object YourController extends Controller {
  def index = Action {
    Ok(VM("vm/index.vm", Map("name" -> "__name__", "title" -> "__title__")))

3. Add vm/index.vm File.

<!DOCTYPE html>

4. Run your application.

Additional Configurations.

Plugin load in velocity.jar.

If customize its settings, add file and edit any settings.

Scala Application Setting.

Velocity don't support Scala's Map and List usually.

If you want to use, please set the following in your project.

runtime.introspector.uberspect =

Sample Scala Play Project.

A sample application is available, to run it:

  1. clone the repository
  2. sbt or sbt.bat
  3. In sbt console, enter project scala-sample and run
  4. open a browser to localhost:9000
Something went wrong with that request. Please try again.