Re:Why Sass And Languages Like It Will Triumph
by endergen on Tuesday January 19, 2010 @02:09AM
(#1061690)
I believe that if you use Compass, it has a command line utility that watches for changes and then compiles the appropriate files automatically when changes occur. This makes your workflow similar to working with css where you have refresh to see your changes.
See documentation for more detail: http://wiki.github.com/chriseppstein/compass/command-line-to...
Re:Why Sass And Languages Like It Will Triumph
by wfarr on Tuesday January 19, 2010 @03:22AM
(#1061753)
Future versions of sass will support this without 'having' to use Compass.
Re:Why Sass And Languages Like It Will Triumph
by ryanwaggoner on Tuesday January 19, 2010 @01:45AM
(#1061667)
Or even better, a server-side module or component that Apache sends all .sass files to, and it outputs css.
Re:Why Sass And Languages Like It Will Triumph
by jlong on Tuesday January 19, 2010 @02:52AM
(#1061725)
For development I like to use Serve: http://github.com/jlong/serve
Re:Why Sass And Languages Like It Will Triumph
by jamesbritt on Tuesday January 19, 2010 @12:36PM
(#1062628)
Sounds like a job for Rack, too.
Re:Why Sass And Languages Like It Will Triumph
by nickpleis on Tuesday January 19, 2010 @02:46PM
(#1062957)
We're a django shop and that's essentially what we do. We already use the django template engine in our javascript/css files (primarily for URL generation, but it's grown to be several other things). We plugged in Sass and it's been great.
The development servers passes CSS files through the django template engine and Sass every time it's served. In production we do it just during deployment. Thus what sits on our CDN is the end result. From a developers pesrpective your always editing the 'source' file not the 'compiled' version.
It's seamless and works great.
Re:Why Sass And Languages Like It Will Triumph
by jashkenas on Tuesday January 19, 2010 @01:13PM
(#1062729)
It's in the works. If all goes well, hopefully the CoffeeScript-in-CoffeeScript compiler will become the mainline:
http://github.com/creationix/coffeepot
Here's a link to Tim's alpha, which is able to parse a limited subset of CoffeeScript (we need to figure out what to do with left-recursive rules):
Re:Why Sass And Languages Like It Will Triumph
by Semiapies on Tuesday January 19, 2010 @05:07PM
(#1063384)
I use Less and just run the lessc tool in --watch mode. A beat after I save the .less file, the .css file is updated.
The killer is that they both require a compile to make it usable by a web browser. It would be far nicer if the compilers were written in JS and processed the languages dynamically.
The final compile before deployment can still happen via command-line tool, but this lets developers work in a simple edit-save-refresh environment.