Cssspec
Generates style guide from stylesheets.
Install / Use
/learn @r7kamura/CssspecREADME
Cssspec
Generates style guide from stylesheets.
Installation
# shell-command
gem install cssspec
Server
# shell-command
rackup
/*
# .button
basic button design
```
<button class="button">
button
</button>
<button class="button danger">
danger
</button>
```
*/
.button {
...
}

Objects
stylesheets = Cssspec::StylesheetsFinder.find("stylesheets/**/*.scss")
stylesheets.size #=> 2
stylesheets[0].path #=> #<Pathname:stylesheets/foo/bar.scss>
stylesheets[0].sections[0].code #=> '<button class="button">button</button>'
stylesheets[0].sections[0].render #=> "<p>Button</p>\n\n<pre> ... </pre>"
