Don't filter files with the compass filter that don't have either scss or sass file extension. Fixes #72.
This commit is contained in:
@@ -18,6 +18,9 @@ class CompassFilter(CompilerFilter):
|
||||
def input(self, *args, **kwargs):
|
||||
if self.filename is None:
|
||||
self.filename = kwargs.pop('filename')
|
||||
if not (self.filename.lower().endswith('scss') or
|
||||
self.filename.lower().endswith('sass')):
|
||||
return ''
|
||||
tmpdir = tempfile.mkdtemp()
|
||||
parentdir = path.abspath(path.dirname(self.filename))
|
||||
self.cwd = path.dirname(parentdir)
|
||||
@@ -31,7 +34,7 @@ class CompassFilter(CompilerFilter):
|
||||
('imagedir', settings.COMPRESS_URL),
|
||||
)
|
||||
for plugin in settings.COMPRESS_COMPASS_PLUGINS:
|
||||
self.command += ' --require %s'% plugin
|
||||
self.command += ' --require %s' % plugin
|
||||
self.command += (' --sass-dir {sassdir} --css-dir {tmpdir}'
|
||||
' --image-dir {imagedir} {infile}')
|
||||
return super(CompassFilter, self).input(*args, **kwargs)
|
||||
|
Reference in New Issue
Block a user