Skip to content
No description or website provided.
Ruby CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
perseus.gemspec

README.md

This gem is under development and has not been released. This documentation describes an incomplete feature set.

perseus Build Status

Perseus converts stylesheets (SASS, SCSS or CSS) into HTML using fake content. The result can be influenced using documenting comments.

The gem allows for the creation of styleguides based on a selection of stylesheets with minimal additional effort, reinforces best practices for writing and structuring self–documenting styles.

Usage

styles = '#foo'
engine = Perseus::Engine.new(styles)
engine.render # => <div id="foo"></div>

Examples

SASS HTML
#foo
  .bar
    h1
      color: red
<div id="foo">
  <div class="bar">
    <h1>Lorem ipsum</h1>
  </div>
</div>
#foo
  // @content: Hello World
  h2
    color: red
<div id="foo">
  <h2>Hello World</h2>
</div>
Something went wrong with that request. Please try again.