Skip to main content

Filter for asset management

Project description

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'
)


Config Options
==============
LIBSASS_STYLE
an optional coding style of the compiled result. choose one of: nested (default), expanded, compact, compressed

LIBSASS_INCLUDES
an optional list of paths to find @imported SASS/CSS source files

LIBSASS_IMAGES
an optional path to find images

Project details


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.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page