Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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


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

Release History

This version
History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
webassets-libsass-0.2.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Jun 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting