Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (16 sloc) 1.248 kB
02b7a2d @Sutto Add more barista stuff
authored
1 # Barista
2
3 Barista is very, very similar to [bistro\_car](http://github.com/jnicklas/bistro_car) (infact, credit where credit is due - it shares similar
4 code / is almost a fork).
5
6 The main difference being, it lets you use coffee as you would javascript. Simply put, Write coffee
7 and place it in `app/scripts` and Barista will automatically serve it as if it was placed in `public/javascripts`
8
9 That is, `app/scripts/demo.coffee` will work for `/javascripts/demo.js`. Even better (and more importantly
10 for me), it provides `Barista.compile_all!` which takes all coffee files and compiles them into `public/javascripts`.
11
12 If you're using Jammit, this means you can simple run a rake task (`rake barista:brew` before running jammit) and
13 your coffeescripts will be automatically provided, ready for bundling.
14
762266f @Sutto More docs
authored
15 To add to your project, simply add:
16
17 gem 'barista', '>= 0.1.0'
18
19 To your Gemfile and run bundle install.
20
21 As you place .coffee files in app/scripts, it will automatically handle them for you.
22
f6d9273 @Sutto More docs
authored
23 Please note that for Jammit compatibility etc, by default in test and dev mode it will
24 automatically compile all coffeescripts that have changed before rendering the page.
25
02b7a2d @Sutto Add more barista stuff
authored
26 Barista require rails 3+ (but patches for Rails 2 will be accepted.)
Something went wrong with that request. Please try again.