Skip to main content
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')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webassets-libsass-0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file webassets-libsass-0.2.tar.gz.

File metadata

File hashes

Hashes for webassets-libsass-0.2.tar.gz
Algorithm Hash digest
SHA256 46a6f30fd8e906c1c00781857bccc2a01c7d06ec0418fb8a7a4de0e0155abe23
MD5 216a43b7569048e999b04692c910916e
BLAKE2b-256 a7921abc01270019c665f9d51c719febe94b323dbc291e71f06de98bd4850eb6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page