A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!
MIT License
Bot releases are hidden (Show)
Published by asottile almost 9 years ago
Published by asottile almost 9 years ago
Published by asottile almost 9 years ago
Published by dahlia about 9 years ago
*.sass
files were ignored. [#78 by Guilhem MAS-PAITRAULT]Published by dahlia over 9 years ago
SassMiddleware
's error_status
parameter was changed from '500 Internal Server Error'
to '200 OK'
so that Mozilla Firefox can render the error message well. [#67, #68, #70 by @zxv]Published by dahlia over 9 years ago
'expanded'
in sass.OUTPUT_STYLES
but 'expected'
instead which is a typo. [#66 by Triangle717]Published by dahlia over 9 years ago
@at-root
directive!global
variable scopingSassMiddleware
became to log syntax errors if exist during compilation to sassutils.wsgi.SassMiddleware
logger with level ERROR
. [#42]Published by dahlia over 9 years ago
Anthony Sottile contributed to the most of this release. Huge thanks to him!
@for
loops@debug
and @error
not
operatornth()
for mapsinspect()
feature-exists()
unique-id()
random()
sass.SassFunction
class.custom_functions
parameter to sass.compile()
function.sass.SassNumber
sass.SassColor
sass.SassList
sass.SassMap
sass.SassError
sass.SassWarning
precision
parameter to sass.compile()
function. [#39 by Andrea Stagi]sassc
has a new -p
/--precision
option. [#39 by Andrea Stagi]Published by dahlia almost 10 years ago
Although 0.6.0–0.6.1 have needed GCC (G++) 4.8+, LLVM Clang 3.3+, now it became back to only need GCC (G++) 4.3+, LLVM Clang 2.9+, or Visual Studio 2013+.
sassc --watch
crashed when a file is not compilable on the first try. [#32 by Alan Justino da Silva]Published by dahlia almost 10 years ago
SassMiddleware
never closes the socket on some WSGI servers e.g. eventlet.wsgi
.Published by dahlia almost 10 years ago
Note that since libsass-python 0.6.0 (and libsass 3.0) it requires C++11 to compile. Although 0.6.2 became back to only need GCC (G++) 4.3+, LLVM Clang 2.9+, from 0.6.0 to 0.6.1 you need GCC (G++) 4.8+, LLVM Clang 3.3+, or Visual Studio 2013+.
call()
functionSOURCE_COMMENTS
became deprecated.sass.compile()
's parameter source_comments
now can take only bool
instead of str
. String values like 'none'
, 'line_numbers'
, and 'map'
become deprecated, and will be obsolete soon.build_directory()
function has a new optional parameter output_style
.Build.build()
method has a new optional parameter output_style
.--output-style
/-s
option to build_sass
command. [#25]Published by dahlia about 10 years ago
SassMiddleware
yieldedstr
instead of bytes
on Python 3.build_directory()
,SassMiddleware
, andbuild_sass
don't recursively buildPublished by dahlia over 10 years ago
*.sass
files).Published by dahlia over 10 years ago
UnicodeEncodeError
that Manifest.build_one()
method rises when the input source contains any non-ASCII Unicode characters.Published by dahlia over 10 years ago
UnicodeEncodeError
that rise when the input source contains any non-ASCII Unicode characters.Published by dahlia over 10 years ago
sassc
has a new -w
/--watch
option.sassc
has a new -m
/-g
/--sourcemap
option.SassMiddleware
now also creates source map files with filenames followed by .map
suffix.Manifest.build_one()
method has a new source_map
option. This option builds also a source map file with the filename followed by .map
suffix.sass.compile()
has a new optional parameter source_comments
. It can be one of sass.SOURCE_COMMENTS
keys. It also has a new parameter source_map_filename
which is required only when source_comments='map'
.sassc
program.include_paths
doesn't work on Windows.Published by dahlia over 10 years ago
Published by dahlia about 11 years ago
sassc
CLI executable script.sass.OUTPUT_STYLES
constant map.Published by dahlia about 11 years ago
sassutils.distutils
: Prevent double monkey patch of sdist
.Published by dahlia about 11 years ago