forked from CGM_Public/pretix_original
Fixed problems with less imports
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
from compressor.filters.base import CompilerFilter
|
||||
from compressor.filters.css_default import CssAbsoluteFilter
|
||||
|
||||
from pretix.settings import STATIC_ROOT, STATICFILES_DIRS
|
||||
|
||||
|
||||
class LessFilter(CompilerFilter):
|
||||
def __init__(self, content, attrs, **kwargs):
|
||||
super(LessFilter, self).__init__(content, command='lessc {infile} {outfile}', **kwargs)
|
||||
cmd = 'lessc --include-path=%s {infile} {outfile}' % ":".join(STATICFILES_DIRS + [STATIC_ROOT])
|
||||
super(LessFilter, self).__init__(content, command=cmd, **kwargs)
|
||||
|
||||
def input(self, **kwargs):
|
||||
content = super(LessFilter, self).input(**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user