1
0
mirror of https://github.com/pattern-lab/patternlab-php.git synced 2025-01-17 14:18:30 +01:00

KSS parser

This commit is contained in:
Dave Olsen 2014-05-30 22:45:22 -04:00
parent 4d6409e610
commit ecb6044801

View File

@ -0,0 +1,30 @@
<?php
/*!
* KSS Plugin Class
*
* Copyright (c) 2014 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
*
*/
namespace PatternLab\Parsers\Plugins;
use \Scan\Kss as KSSParser;
class KSS {
/**
* Parse the CSS, Sass, Less, and Stylus files in sourceDir to find KSS comments
* @param {String} the sourceDir to be checked
*
* @return {Object} an object containing the properties that were found for the styleguide
*/
public static function parse($sourceDir) {
$styleguide = new KssParser\Parser($sourceDir);
return $styleguide;
}
}