dust.js pre-compiler for SBT 0.11+
JavaScript Scala
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 11 commits behind timperrett:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


SBT dust.js

This plugin is a pre-compiler for the client-side templating system dust.js. The plugin builds your dust templates into javascript files that you can then include into your markup pages. For those who arn't familiar, dust.js recently achieved fame on the linkedin engineering blog

If you have a lot of templates, then you might want to considering merging them into a single file as an optimisation, but that is out of the scope of this plugin which is currently only concerned with template compilation.


The plugin is currently unpublished and very alpha. With that in mind you need to build from source... like a boss! Once you've done this and publish-local'd you can add it to a project in project/plugins.sbt like so:

  addSbtPlugin("eu.getintheloop" % "sbt-dustjs" % "0.0.1-SNAPSHOT")

And then add the settings in a build.sbt:

import dustjs.DustJsPlugin

seq(DustJsPlugin.dustSettings: _*)

or in an SBT "full configuration" something like:

settings = DustJsPlugin.dustSettings

With the plugin added, you just need to place your dust templates in src/main/dust and then invoke dust from the SBT 11.x shell.