Sha256: a6f003a399a5493b4d669b8d09264bcdd8db492b6a3741052dfba2c08820dbb0

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

!!!
%html
  %head
    %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
    %link{:href => "styles.css", :rel => "stylesheet", :type => "text/css"}/
    %script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js", :type => "text/javascript"}
    %script{:src => "scripts.js", :type => "text/javascript"}
    %title apidoc
  %body
    #resource_index
      %form{:onsubmit => "return false;"}
        %input{:type => "text"}/
        %img{:alt => "search", :src => "Search.png"}
      %h2 Resources
      %ul#resource_index
        - resource_docs.each do |resource|
          %li
            %a{:href => "##{resource.name}"}= resource.name
            - if resource.function_blocks.any?
              %ul
                - resource.function_blocks.each do |method_block|
                  %li
                    %a{:href => "##{resource.name}_method_#{method_block.method_order}"}
                      = "#{method_block.method} #{method_block.url}"
    #resources
      %ul
        %li
          %strong Show XML
          %a{:href => "#", :onclick => "$('.xml').toggle();"} toggle
        %li
          %strong Show JSON
          %a{:href => "#", :onclick => "$('.json').toggle();"} toggle
      - resource_docs.each do |resource|
        %a{:id => "#{resource.name}"}
        .resource
          - if resource.resource_header
            = resource.resource_header
          - if resource.resource_methods
            - resource.resource_methods.each do |method|
              = method

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapi_doc-0.4.0 templates/index.html.haml