example/views/styleguide.erb
<% styleguide_block '1.1' do %>
<button class="$modifier_class">Example Button</button>
<% end %>
<p>This block above was created with a simple template call:</p>
<pre><code><% styleguide_block '1.1' do %>
<button class="$modifier_class">Example Button</button>
<% end %></code></pre>
<p>
Take a look at the source code to this Sinatra app for more details. The goal
is to remove the pain from creating a styleguide — document your CSS, have
example HTML in your templates and automate as much as possible.
</p>