forked from tooky/less-for-rails
/
README
51 lines (24 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--~~ Less for Rails ~~--
A plug-and-play hook for the fabulous Less CSS syntax, http://lesscss.org/.
If you're deploying to Heroku, go here: http://github.com/augustl/less_for_rails_with_cache_control/tree
-- Usage --
1. Install the gem, `gem install less`
2. Install the plugin,
`script/plugin install git://github.com/augustl/less-for-rails.git`
3. Create public/stylesheets/yourfile.less
4. Use <%= stylesheet_link_tag "yourfile" %> in the views, as normal.
It will generate one .css for each .less
in public/stylesheets.
-- It knows about production mode --
In development mode, it compiles the CSS whenever
it is changed, so that you can edit your .less and
the site to see how it looks. It is very fabolous,
and the plugin has won many prizes for this.
In other modes such as production and test,
it compiles changed CSS files when the application boots.
-- Git --
Are you using Less for all your stylesheets? Perhaps
you should add `public/stylesheets/*.css` to your
.gitignore.
-- Me --
I am August Lilleaas. http://august.lilleaas.net/