Sha256: ca6762a2418abfccd450b2b1f5ebb40e862cc2a9c1e53d320bdb7cb9c1d64da2

Contents?: true

Size: 1.18 KB

Versions: 62

Compression:

Stored size: 1.18 KB

Contents

#<%= @name %>.style-guide__subsection

  %h3= link_to_style_guide('<%= @section %>', '<%= @slug %>')

  %p <%= @name %> Description

<% if @section == 'tools' %>
  %table.table
    %thead
      %tr
        %th Parameter
        %th Description
        %th Required?
        %th Default Value
    %tbody
      %tr
        %td <code>$example-param</code>
        %td It's just an example
        %td Yes
        %td None

  %p Useage:
  %pre.style-guide__code-block
    %code
      :preserve
        .example {
            @include example($param)
        }
<% end; if @section == 'components' %>
  .style-guide__example-block
    %span.example
<% end; if ['objects','components'].include?(@section) %>
  .style-guide__unit-test
    %h4 Unit Test

    %p should work with <code>example</code> elements
    .style-guide__example-block
      %span.example-class

    %p should work with <code>example</code> elements
    .style-guide__example-block
      %span.example-class
<% end; if @section == 'trumps' %>
  %p without <code>example-class</code>:
  .style-guide__example-block
    %span Example

  %p without <code>example-class</code>:
  .style-guide__example-block
    %span.example-class Example
<% end %>

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.15 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.36 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.14 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.35 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.13 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.34 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.12 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.33 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.11 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.10 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.32 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.9 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.31 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.8 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.30 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.7 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.29 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.6 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.28 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.5 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb