Here are the examples of the python api pykss.Parser taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
5
Example 1
def setUp(self):
fixtures = os.path.join(os.path.dirname(__file__), 'fixtures')
self.scss = pykss.Parser(os.path.join(fixtures, 'scss'))
self.less = pykss.Parser(os.path.join(fixtures, 'less'))
self.sass = pykss.Parser(os.path.join(fixtures, 'sass'))
self.css = pykss.Parser(os.path.join(fixtures, 'css'))
self.na = pykss.Parser(os.path.join(fixtures, 'scss'), extensions=['.css'])
self.multiple = pykss.Parser(os.path.join(fixtures, 'scss'), os.path.join(fixtures, 'less'))
0
Example 2
def get_styleguide(self):
dirs = getattr(settings, 'PYKSS_DIRS', [])
exts = getattr(settings, 'PYKSS_EXTENSIONS', None)
return pykss.Parser(*dirs, extensions=exts)