bradfrost / patternlab

Make a pattern library using atomic design.
854 stars 116 forks source link

Exclude non-PHP files from styleguide #4

Closed amclin closed 11 years ago

amclin commented 11 years ago

The styleguide incorrectly searches for all files in the patterns folder when generating its display. As a result, binary files (like the .DS_Store files) are included, causing garbage on the page.

This pull request adds a filter so that only .php files are included in the styleguide display

bradfrost commented 11 years ago

Might need to revisit this later to keep things as language-agnostic as possible, but this should do the trick in the meantime.

amclin commented 11 years ago

This project is exciting, already using it to prototype for a client's site-wide redesign!