Skip to content

Instantly share code, notes, and snippets.

@seangaffney
Created September 16, 2010 22:26
Show Gist options
  • Save seangaffney/583283 to your computer and use it in GitHub Desktop.
Save seangaffney/583283 to your computer and use it in GitHub Desktop.
This TextMate command will export your SCSS files to CSS on save. Hotness. Requires HAML gem to be installed. It's really just a modified version of the LESS Save to CSS command. Be sure to check the screenshot in the comments for the rest of the config
#!/usr/bin/env ruby
file = STDIN.read[/sass: ([^*]+\.scss)/, 1] || ENV["TM_FILEPATH"]
file2 = file.sub(/\.scss/,'.css')
system("sass \"#{file}\":\"#{file2}\"")
@seangaffney
Copy link
Author

For the rest of the TextMate command settings, have a look at this screenshot. http://cl.ly/2Q9l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment