コード例 #1
0
def process_file(source):
    sheet = css_single.parse(source)
    hash = hashlib.md5()
    hash.update(sheet)
    filename = OUT_PREFIX + hash.hexdigest() + FILENAME_POSTFIX
    with open(filename, "w") as out:
        out.write(sheet)
    return source, filename
コード例 #2
0
ファイル: run-tests.py プロジェクト: Splurov/static-helpers
import css_single

print css_single.parse('tests/css.css')