Sass or Compass without ruby?

Troy Cosentino picture Troy Cosentino · Sep 30, 2012 · Viewed 49.1k times · Source

Is there a way to use Sass or Compass or anything like that without Ruby?

I have been looking around google and this site and can't find anything, any help would be appreciated. Thank you

Answer

tftd picture tftd · Sep 30, 2012

Sass was originally written for Ruby, but now they've created libSass which is a C/C++ port of the Sass engine, which makes it easier to integrate the engine into an IDE or another language. At this point, you can use the Sass engine in Ruby, Node.js, Python, PHP, Java, .NET and others. For more information, visit libSass. Also, your IDE might have a plugin which would support Sass, without the need of ruby by using the libSass.

The original answer below may or may not apply to your situation (depends on whether or not your language has implemented support for libSass or not). I decided to leave it the way it is for archive reasons.


Sass (requires Ruby)

Sass is written in Ruby, so you’ll need Ruby installed as well. Taken from sass's site

Compass (requires Ruby, as it's based on SASS)

Compass is an open-source CSS authoring framework which uses the Sass stylesheet language to make writing stylesheets powerful and easy. Taken from compass's site

Less (written in js, requires node.js or less.js included in the page)

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions. LESS runs on both the client-side (Chrome, Safari, Firefox) and server-side, with Node.js and Rhino. Taken from Less's site

These are the main processors out there that I know of. You may write your own parser/port for any another language of choice.

In other words, no you can't use sass/compass without having Ruby because the program itself (sass & compass) IS written in Ruby. So you'll definitely need it in order to run it.