Midwife
A collection of preprocessors for frontend development.
Install
$ gem install midwife
Setup
In Rakefile:
require 'midwife'
The rest:
$ rake setup
Usage
-
rake care
processeshaml
,scss
andjs
files once, and drops the artifacts inpublic
. -
rake listen
processes each time you touch the files. -
rake serve
starts a web server running on localhost:9292 and listens to every change you make. -
rake setup
sets up your environment. -
rake stitch
composespng
files inassets/images
into a single file and drop it inpublic/images
, as well as creates a complimentary partial_sprites.scss
inassets/stylesheets
, which you can import into your scss.
Helpers
= render "partial" # file name must be prefixed with an underscore, ie. _partial.haml.
Deploy to Heroku
$ gem install heroku
$ heroku create app_name
$ git push heroku master
$ heroku open