pykss.Parser

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 7

Example 1

Project: pykss Source File: test_parser.py
Function: set_up
    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'))

Example 2

Project: pykss Source File: views.py
Function: get_style_guide
    def get_styleguide(self):
        dirs = getattr(settings, 'PYKSS_DIRS', [])
        exts = getattr(settings, 'PYKSS_EXTENSIONS', None)
        return pykss.Parser(*dirs, extensions=exts)