{
"info": {
"author": "Matt Westcott",
"author_email": "matthew.westcott@torchbox.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3"
],
"description": "django-libsass\n==============\n\nA django-compressor filter to compile Sass files using libsass.\n\nInstallation\n~~~~~~~~~~~~\n\nStarting from a Django project with `django-compressor `_ set up::\n\n pip install django-libsass\n\nand add django_libsass.SassCompiler to your COMPRESS_PRECOMPILERS setting::\n\n COMPRESS_PRECOMPILERS = (\n ('text/x-scss', 'django_libsass.SassCompiler'),\n )\n\nYou can now use the content type text/x-scss on your stylesheets, and have them\ncompiled seamlessly into CSS::\n\n {% compress css %}\n \n {% endcompress %}\n\n\nImports\n~~~~~~~\n\nRelative paths in @import lines are followed as you would expect::\n\n @import \"../variables.scss\";\n\nAdditionally, Django's STATICFILES_FINDERS setting is consulted, and all possible locations\nfor static files *on the local filesystem* are included on the search path. This makes it\npossible to import files across different apps::\n\n @import \"myotherapp/css/widget.scss\"\n\n\nSettings\n~~~~~~~~\n\nThe following settings can be used to control django-libsass's behaviour:\n\n* ``LIBSASS_SOURCE_COMMENTS`` - whether to enable SASS source comments (adds comments about source lines). Defaults to ``True`` when Django's ``DEBUG`` is ``True``, ``False`` otherwise.\n* ``LIBSASS_OUTPUT_STYLE`` - SASS output style. Options are ``'nested'``, ``'expanded'``, ``'compact'`` and ``'compressed'``, although as of libsass 3.0.2 only ``'nested'`` and ``'compressed'`` are implemented. Default is 'nested'. See `SASS documentation for output styles `_. Note that `django-compressor's settings `_ may also affect the formatting of the resulting CSS.\n* ``LIBSASS_CUSTOM_FUNCTIONS`` - A mapping of custom functions to be made available within the SASS compiler. By default, a ``static`` function is provided, analogous to Django's ``static`` template tag.\n* ``LIBSASS_SOURCEMAPS`` - Enable embedding sourcemaps into file output.\n* ``LIBSASS_PRECISION`` - Number of digits of numerical precision (default: 5)\n\nCustom functions\n~~~~~~~~~~~~~~~~\n\nThe SASS compiler can be extended with custom Python functions defined in the ``LIBSASS_CUSTOM_FUNCTIONS`` setting. By default, a ``static`` function is provided, for generating static paths to resources such as images and fonts::\n\n .foo {\n background: url(static(\"myapp/image/bar.png\"));\n }\n\nIf your ``STATIC_URL`` is '/static/', this will be rendered as::\n\n .foo {\n background: url(\"/static/myapp/image/bar.png\"));\n }\n\nWhy django-libsass?\n~~~~~~~~~~~~~~~~~~~\n\nWe wanted to use Sass in a Django project without introducing any external (non pip-installable)\ndependencies. (Actually, we wanted to use Less, but the same arguments apply...) There are a few\npure Python implementations of Sass and Less, but we found that they invariably didn't match the\nbehaviour of the reference compilers, either in their handling of @imports or lesser-used CSS\nfeatures such as media queries.\n\n`libsass `_ is a mature C/C++ port of the Sass engine, co-developed by the\noriginal creator of Sass, and we can reasonably rely on it to stay in sync with the reference\nSass compiler - and, being C/C++, it's fast. Thanks to Hong Minhee's\n`libsass-python `_ project, it has Python bindings and\ninstalls straight from pip.\n\ndjango-libsass builds on libsass-python to make @import paths aware of Django's staticfiles\nmechanism, and provides a filter module for django-compressor which uses the libsass-python API\ndirectly, avoiding the overheads of calling an external executable to do the compilation.\n\nAuthor\n~~~~~~\n\nMatt Westcott matthew.westcott@torchbox.com",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/torchbox/django-libsass",
"keywords": null,
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "django-libsass",
"package_url": "https://pypi.org/project/django-libsass/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/django-libsass/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/torchbox/django-libsass"
},
"release_url": "https://pypi.org/project/django-libsass/0.7/",
"requires_dist": null,
"requires_python": null,
"summary": "A django-compressor filter to compile SASS files using libsass",
"version": "0.7"
},
"last_serial": 2095869,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "dff75ce3017af48dc0df24cf79a19b93",
"sha256": "f281fab9e18ff278251f33a36f8daea8ccbc233fa76b26a82777a9d9683da8bb"
},
"downloads": -1,
"filename": "django-libsass-0.1.tar.gz",
"has_sig": false,
"md5_digest": "dff75ce3017af48dc0df24cf79a19b93",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3089,
"upload_time": "2014-03-05T19:42:38",
"url": "https://files.pythonhosted.org/packages/01/4c/74ce04644cec95393c6378e757e56576d18507405cbd4bf7cf7b1344d89a/django-libsass-0.1.tar.gz"
}
],
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "31196c632e2f2c35193fb5b315d4fd79",
"sha256": "082274237a40b096721fb7b53bab3e83e1f60347f4dbf1b5afa6e3b579aff832"
},
"downloads": -1,
"filename": "django-libsass-0.2.tar.gz",
"has_sig": false,
"md5_digest": "31196c632e2f2c35193fb5b315d4fd79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3101,
"upload_time": "2014-05-22T15:08:58",
"url": "https://files.pythonhosted.org/packages/a9/de/acc7d610f89c54dd874b213a253c1100a6e525e32ac8bb5fbc78df5390b0/django-libsass-0.2.tar.gz"
}
],
"0.3": [
{
"comment_text": "",
"digests": {
"md5": "090ce722a3086e81390c1c4c0e22693d",
"sha256": "cb56b77d564e356320e3ca5fdfef0a7a0003437ab8c449ea03a39499324a646e"
},
"downloads": -1,
"filename": "django-libsass-0.3.tar.gz",
"has_sig": false,
"md5_digest": "090ce722a3086e81390c1c4c0e22693d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3635,
"upload_time": "2015-04-27T16:56:31",
"url": "https://files.pythonhosted.org/packages/f2/24/af6082472a44429d1a4c66f6bb3881d5a2b930ad9fbe9ced597e3f4a4373/django-libsass-0.3.tar.gz"
}
],
"0.4": [
{
"comment_text": "",
"digests": {
"md5": "06c1de2c931bf2c515ab3b026a38408f",
"sha256": "9fc3d90623810565d482b7e4b4f8414a5f886fd6f39705adb27fdead012ded6c"
},
"downloads": -1,
"filename": "django_libsass-0.4-py2-none-any.whl",
"has_sig": false,
"md5_digest": "06c1de2c931bf2c515ab3b026a38408f",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 6829,
"upload_time": "2015-08-24T13:24:48",
"url": "https://files.pythonhosted.org/packages/8e/de/5b3c989a35767356f0fa1b1ea5c3f14d4b31a414d43cb99ab21b9efacf8c/django_libsass-0.4-py2-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "1559c31f81171de551002a27823f7c99",
"sha256": "e22d1aacbc4865260df8a22999eb1dbab6847ee6abe6d2dd2108c547a3c3fb99"
},
"downloads": -1,
"filename": "django-libsass-0.4.tar.gz",
"has_sig": false,
"md5_digest": "1559c31f81171de551002a27823f7c99",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4028,
"upload_time": "2015-08-24T13:24:38",
"url": "https://files.pythonhosted.org/packages/3a/fa/e09e9fa704fc0d31ec35fdceed86635b5ca06266209ef95af43beae82a06/django-libsass-0.4.tar.gz"
}
],
"0.5": [
{
"comment_text": "",
"digests": {
"md5": "00425c2e53306a5639b90acd73b87c79",
"sha256": "50b6ddc5fa93a989c9ce596d40bed5cce29144112152540a9bba1f7f04de3004"
},
"downloads": -1,
"filename": "django-libsass-0.5.tar.gz",
"has_sig": false,
"md5_digest": "00425c2e53306a5639b90acd73b87c79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4900,
"upload_time": "2015-11-18T01:09:06",
"url": "https://files.pythonhosted.org/packages/7d/d0/1802fff1e5b8f971f9fef34db632e3a40eb1f779dcadda36f2c66769e71e/django-libsass-0.5.tar.gz"
}
],
"0.6": [
{
"comment_text": "",
"digests": {
"md5": "910d1f22cced1f9f0f1acbcfd5177557",
"sha256": "661cce5fa81cd260ba524c5ea8f8c7a69d36103636dd9aa00c7fe650c1f5e9f6"
},
"downloads": -1,
"filename": "django-libsass-0.6.tar.gz",
"has_sig": false,
"md5_digest": "910d1f22cced1f9f0f1acbcfd5177557",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4914,
"upload_time": "2015-11-21T19:13:54",
"url": "https://files.pythonhosted.org/packages/23/64/c3e9f10157b161c11be07a24a3ba96e468dbab708421e0c628d598e8c3eb/django-libsass-0.6.tar.gz"
}
],
"0.7": [
{
"comment_text": "",
"digests": {
"md5": "cd0da08e8c47c7b3e6423e39cdaa44ff",
"sha256": "49db3334b87e1f7955c4f9fb9945bc296f8bfd27a14d6d89706e4b0e5dc5de1c"
},
"downloads": -1,
"filename": "django-libsass-0.7.tar.gz",
"has_sig": false,
"md5_digest": "cd0da08e8c47c7b3e6423e39cdaa44ff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4924,
"upload_time": "2016-05-02T22:12:22",
"url": "https://files.pythonhosted.org/packages/96/1a/0ebcb4e90b41f27d2b96adba01c62a590942686c6dbc7371ab89be044066/django-libsass-0.7.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "cd0da08e8c47c7b3e6423e39cdaa44ff",
"sha256": "49db3334b87e1f7955c4f9fb9945bc296f8bfd27a14d6d89706e4b0e5dc5de1c"
},
"downloads": -1,
"filename": "django-libsass-0.7.tar.gz",
"has_sig": false,
"md5_digest": "cd0da08e8c47c7b3e6423e39cdaa44ff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4924,
"upload_time": "2016-05-02T22:12:22",
"url": "https://files.pythonhosted.org/packages/96/1a/0ebcb4e90b41f27d2b96adba01c62a590942686c6dbc7371ab89be044066/django-libsass-0.7.tar.gz"
}
]
}