Skip to content

Instantly share code, notes, and snippets.

View barberboy's full-sized avatar

Ben Barber barberboy

View GitHub Profile
if day in ["Monday", "Tuesday", "Wednesday", "Thursday"]
do_scream()
pull_hair_out()
else
relax()
go_camping()
@barberboy
barberboy / README.md
Created October 11, 2011 20:24
Docpad: Using Stylus with Nib

stylus.plugin.coffee is a plugin for [DocPad][] which provides an alternative way to use [Stylus][] and [Nib][].

This plugin (by default) compiles a stylus source file at src/styles/styles.styl and places the resulting styles.css file in out/styles.

The source file and output directory can be customized by placing a stylus.config.coffee file in the plugins directory that exports a config object. An example stylus.config.coffee file is attached to this gist.

This plugin requires stylus and nib to be installed. These can be installed locally in your project root with npm:

$ npm install stylus

$ npm install nib