Sha256: f96594a899cacf28eac541d880145419fe53d3670170358301fea3cfa662455f

Contents?: true

Size: 1.9 KB

Versions: 1

Compression:

Stored size: 1.9 KB

Contents

%h4.page-header
  %a{:href => to('/')} Help & support
  == » #{@human_name} » #{humanize(@page)}

.container
  .row
    = haml :_menu
    %article.span9.help-text
      %h1= @json.first['name']
      = haml :_pending, :locals => { :element => @json.first }
      = ::Kramdown::Document.new(h(@json.first['description'])).to_html

      - elements = @json.first['elements']
      - if elements
        .examples
          - elements = @json.first['elements']
          - if elements.first['keyword'] == 'Background'
            .well.well-small
              %strong Note:
              The following examples assume
              = elements.first['steps'].map{|s| 'that ' + s['name']}.to_sentence + '.'
          - elements.select { |e| e['keyword'] == 'Scenario' }.each do |example|
            %h5.example== Example: #{example['name'].downcase}
            = haml :_pending, :locals => { :element => example }
            %p
              %em
                - if example['steps']
                  - example['steps'].slice_before {|step| step['keyword'] =~ /When|But/ }.each do |chunk|
                    = replace_start(chunk.map { |step| step['keyword'].downcase + step['name'] + haml(:_cells, :locals => { :rows => step['rows']}) + haml(:_docstring, :locals => { :string => step['doc_string']}) }.join(', ')).tap {|s| s.sub!(/./, &:upcase) }.tap {|s| s.sub!(/$/, '.') unless s.include?("<table>") || s.include?("<pre") }
                - else
                  %span.muted This example hasn't yet been detailed.
      %hr
      %footer.muted
        %small
          Generated automatically from this project's
          %a{:href => "http://github.com/cucumber/cucumber"} Cucumber
          features.
          View the
          %a{:href => 'javascript:false', :'data-toggle' => 'collapse', :'data-target' => '#source'} source.
        %br
        %br
        #source.collapse
          %pre
            %code= @raw

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-usermanual-0.4 views/page.haml