Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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.

Usage

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.

About

dust.js pre-compiler for SBT 0.11+

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /