Stylus assets for Play 2.0
Scala CSS
Pull request Compare This branch is 10 commits ahead, 2 commits behind knuton:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project Migration to play 2.2.x. Oct 7, 2013
src
test_cases Add option to pass command-line flags Apr 20, 2012
.gitignore
LICENSE Add Readme and license Mar 16, 2012
README.md
build.sbt

README.md

play-stylus

[stylus] 1 asset handling for [Play 2.2] 2, implemented as an [sbt] 3 plugin (very similar to Play's handling of CoffeeScript and LESS).

Prerequisites

The plugin assumes the availability of the stylus executable. With node.js and npm installed, run

npm install -g stylus

to install stylus globally, thereby installing not only the module, but also the executable.

Installation

In your Play application folder, add

resolvers += "Patience Releases" at "http://repo.patience.io/"

addSbtPlugin("patience" % "play-stylus" % "1.0.0")

to project/plugins.sbt, and

patience.assets.StylusPlugin.stylusSettings

to build.sbt.

The plugin registers for compilation of app/assets/**/*.styl, that is all stylus files in your app/assets directory.

sbt settings

  • compile:resource-generators: The stylus file watcher is being added here
  • play-stylus-entry-points: All files matching app/assets/**/*.styl, except files starting in an underscore
  • play-stylus-options: A sequence of strings passed to stylus as command-line flags

License

Copyright (c) 2012 Johannes Emerich

MIT-style licensing, for details see file LICENSE.