Installing SASS 3.0 on Ubuntu 10.4
Currently, the HAML/Sass version on Ubuntu is 2.2.17. Version 3, also known as Classy Cassidy, includes new features. So how can you install it on Ubuntu.
Firstly, you need Ruby:
sudo apt-get install ruby
Thereafter (without sudo):
gem install haml-edge
This will install Haml and Sass into your directory, but at least you will have access to the latest version. Message that appears:
WARNING: Installing to ~/.gem since /var/lib/gems/1.8 and /var/lib/gems/1.8/bin aren't both writable. WARNING: You don't have /home/tohir/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Successfully installed haml-edge-3.1.49 1 gem installed
You can test that it is the latest version by:
~/.gem/ruby/1.8/bin/sass -version
Which should return:
Haml/Sass 3.1.49 (Bleeding Edge)
Lastly, there is a nice command to watch files and auto generate an updated version:
~/.gem/ruby/1.8/bin/sass -t compact --watch [inputfile]:[outputfile]
like:
~/.gem/ruby/1.8/bin/sass -t compact --watch browseView.scss:browseView.css
