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:
parent
4d6409e610
commit
ecb6044801
30
core/lib/PatternLab/Parsers/Plugins/KSS.php
Normal file
30
core/lib/PatternLab/Parsers/Plugins/KSS.php
Normal 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;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user