Created
November 1, 2012 18:34
-
-
Save pivotal-blueprint/3995613 to your computer and use it in GitHub Desktop.
Minimal test case
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 python | |
import sass | |
import sys | |
infile, outfile = sys.argv[1:] | |
with open(infile) as f: | |
# Defaults to output_style=nested -- leaving an explicit argument | |
# as a reminder. Should be "compressed" in production -- may require | |
# library to uglify output. | |
compiled = sass.compile(string=f.read(), | |
output_style="nested", | |
include_paths=[]) | |
with open(outfile, "w") as f: | |
f.write(compiled) |
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
#!/bin/bash -x | |
python compile_with_libsass.py test.scss output.css |
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
@media (min-width: 980px) { | |
a { | |
color: red; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment