Created
September 16, 2010 22:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
file = STDIN.read[/sass: ([^*]+\.scss)/, 1] || ENV["TM_FILEPATH"] | |
file2 = file.sub(/\.scss/,'.css') | |
system("sass \"#{file}\":\"#{file2}\"") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the rest of the TextMate command settings, have a look at this screenshot. http://cl.ly/2Q9l