diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-06 02:10:29 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-06 02:10:29 -0500 |
commit | 2421d5f15569515d9fda3c6f36edeaf7e5222b54 (patch) | |
tree | a9c5d8cdf8eb7154435c450a7a63ed29d98f5836 /src/guff/views | |
parent | 845049cc77426ddf14d351b9d548b1fbb53925d1 (diff) | |
download | old-guff-2421d5f15569515d9fda3c6f36edeaf7e5222b54.tar.bz2 old-guff-2421d5f15569515d9fda3c6f36edeaf7e5222b54.zip |
add api-docs
Diffstat (limited to 'src/guff/views')
-rw-r--r-- | src/guff/views/api-docs.ecr | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/guff/views/api-docs.ecr b/src/guff/views/api-docs.ecr new file mode 100644 index 0000000..8611285 --- /dev/null +++ b/src/guff/views/api-docs.ecr @@ -0,0 +1,32 @@ +<h1><%= TITLE %></h1> + +<div class='section'> +<h2>Table of Contents</h2> +<ul><% namespaces.each do |namespace| %> + <li> + <%= namespace %> + <ul><% methods(namespace).each do |method| %> + <li> + <a + href='#m-<%= namespace %>-<%= method %>' + title='View <%= namespace %>/<%= method %> details.' + > + <%= method %> + </a> + </li> + <% end %></ul> + </li> +<% end %></ul> +</div><!-- section --> + +<% namespaces.each do |namespace| %> + <% methods(namespace).each do |method| %> + <div id='m-<%= namespace %>-<%= method %>' class='section'> + <b><%= namespace %>/<%= method %></b> + + <p><%= + h(APIMethods::API[namespace][method][:text] as String) + %></p> + </div><!-- section --> + <% end %> +<% end %> |