Sha256: 8b3100e4cdddb182cc45d0e8859dad7ef84c7f25b250b93c7c5b904b0fc91f6c

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

<div class="col-md-8">
  <div class="styleguide-example">
    <h3><%= section.section %> <em><%= section.filename %></em></h3>
    <div class="styleguide-description">
      <p><%= section.description %></p>
      <% if section.modifiers.any? %>
        <ul class="styleguide-modifier">
          <% section.modifiers.each do |modifier| %>
            <li><strong><%= modifier.name %></strong> - <%= modifier.description %></li>
          <% end %>
        </ul>
      <% end %>
    </div>
    <div class="styleguide-element">
      <%= example_html(section) %>
    </div>
    <% section.modifiers.each do |modifier| %>
      <div class="styleguide-element styleguide-modifier">
        <span class="styleguide-modifier-name"><%= modifier.name %></span>
        <%= example_html(section).sub('$modifier_class', " #{modifier.class_name}").html_safe %>
      </div>
    <% end %>
    <div class="styleguide-html">
      <pre class="styleguide-code"><code>
        <%= escaped_html(section) %>
      </code></pre>
    </div>

  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stylin-0.1.0 lib/generators/templates/views/stylin/styleguides/_section.html.erb