-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
53 lines (40 loc) · 1.19 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
webassets-libsass
=================
Filter for asset management "webassets" that uses "libsass"
Required
========
libsass (libsass-python): http://dahlia.kr/libsass-python you need to have C/C++ compiler
webassets: https://pypi.python.org/pypi/webassets
Installation
============
Option 1:
========
download and extract, then: python setup.py install
Option 2:
========
run pip install webassets-libsass
Use
===
Register filter:
===============
from webassets.filter import register_filter
from webassets_libsass import LibSass
register_filter(LibSass)
Like another webassets filter:
=============================
# foundation framework
foundation = Bundle(
'scss/foundation/app.scss',
filters='libsass',
output='css/foundation.css'
)
Configuration Options
=====================
LIBSASS_OUTPUT_STYLE (output_style)
an optional coding style of the compiled result. choose one of: nested (default), expanded, compact, compressed
LIBSASS_INCLUDE_PATHS (include_paths)
an optional list of paths to find @imported SASS/CSS source files
Example:
env = Environment( ... )
env.config['LIBSASS_OUTPUT_STYLE'] = 'compressed'
Bundle('src/test.scss', filters='libsass', output='out/test.css')