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):
|
def input(self, *args, **kwargs):
|
||||||
if self.filename is None:
|
if self.filename is None:
|
||||||
self.filename = kwargs.pop('filename')
|
self.filename = kwargs.pop('filename')
|
||||||
|
if not (self.filename.lower().endswith('scss') or
|
||||||
|
self.filename.lower().endswith('sass')):
|
||||||
|
return ''
|
||||||
tmpdir = tempfile.mkdtemp()
|
tmpdir = tempfile.mkdtemp()
|
||||||
parentdir = path.abspath(path.dirname(self.filename))
|
parentdir = path.abspath(path.dirname(self.filename))
|
||||||
self.cwd = path.dirname(parentdir)
|
self.cwd = path.dirname(parentdir)
|
||||||
|
Reference in New Issue
Block a user