!!! %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