News for hackers. Stuff that matters.
Re:Less.js will obsolete CSS by jomohke on Sunday June 20, 2010 @04:59AM (#1446186)
We used Less for a project, but ended up moving to Sass: http://sass-lang.com/

The Sass compiler was (is?) more mature, and the language feels more consistent (see the '&' operator in Sass vs the :hover special case in Less). The editor/tool support was quite a bit better too.

Sass doesn't have a javascript in-browser implementation (afaik), but for rapid development it can watch a folder/file for changes and automatically recompile to static CSS files.

Plus there's a firebug plugin, so you get Sass line numbers / references instead of compiled CSS line numbers: https://addons.mozilla.org/en-US/firefox/addon/103988/

Re:Less.js will obsolete CSS by unfletch on Sunday June 20, 2010 @04:46PM (#1447136)
FYI, Less.js isn't just a javascript port. It adds new features, and the "&" selector is among them.

That said, I agree that SASS is more mature. I've used each on at least two projects now, and, with the release of SASS 3.0's and SCSS, I'm committing to SASS. This client-side parsing is a cool trick, but it's easy to do my CSS generation at the same time as my javascript minification. I just don't need it.

Re:Less.js will obsolete CSS by rapind on Sunday June 20, 2010 @07:35AM (#1446315)
Interesting. I tried both and now use LESS with the More plugin in my rails app. I'm a huge fan of HAML, but I haven't fallen in love with SASS yet. The big upside to LESS is it still looks like CSS. Compass is interesting though, from the SASS side. http://github.com/chriseppstein/compass
Re:Less.js will obsolete CSS by jomohke on Sunday June 20, 2010 @08:09AM (#1446350)
The latest version of Sass (3.0) has CSS syntax: The compiler supports both variants - the file extension (.scss vs .sass) denotes which you want to use.

See the examples on their front page: http://sass-lang.com

They have a command line tool "sass-convert", which can convert between the syntaxes (and from Less)

Re:Less.js will obsolete CSS by rapind on Tuesday June 22, 2010 @12:04AM (#1450900)
Thanks for pointing that out. I'll give it another go.
Re:Less.js will obsolete CSS by perlpimp on Sunday June 20, 2010 @06:26AM (#1446253)
There is sass in node.js/express framework. cant see why it cant ne adjusted to be use client side.
Re:Less.js will obsolete CSS by nex3 on Sunday June 20, 2010 @02:43PM (#1446957)
Unfortunately, sass.js is pretty incomplete and has no support for SCSS.