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.27 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.26 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.45 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.25 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.23 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.44 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.22 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.43 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.21 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.42 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.20 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.41 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.19 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.40 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.18 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.39 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.17 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.38 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.5.16 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb
workarea-core-3.4.37 lib/generators/workarea/style_guide/templates/style_guide_partial.html.haml.erb