<!doctype html>

<!-- Documentation generated by [CoffeeDoc](http://github.com/omarkhan/coffeedoc) -->

<html>
<head>
  <title>CoffeeDoc | <%= @module.basename %></title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" media="all" href="<%= @module.resourcepath %>base.css" />
</head>
<body>
  <header>
    <h1><%= @module.basename %></h1>
  </header>
  <div class="container">
    <div class="sidebar column">
      <% if @module.classes.length > 0: %>
      <h4>Classes</h4>
      <ul class="classlist">
        <% for cls in @module.classes: %>
        <li><a href="#<%= cls.name %>"><%= cls.name %></a></li>
        <% end %>
      </ul>
      <% end %>
      <% if @module.functions.length > 0: %>
      <h4>Functions</h4>
      <ul class="functionlist">
        <% for func in @module.functions: %>
        <li><a href="#<%= func.name %>"><%= func.name %></a></li>
        <% end %>
      </ul>
      <% end %>
    </div>
    <div class="content column">
      <% if @module.docstring: %>
      <div id="module-docstring">
        <%- @module.docstring %>
      </div>
      <% end %>
      <% if @module.classes.length > 0: %>
      <div id="classes">
        <h2>Classes</h2>
        <% for cls in @module.classes: %>
        <div class="class">
          <div class="header">
            <a id="<%= cls.name.replace /^exports\./, '' %>"><h3><%= cls.name %></h3></a>
            <% if cls.parent: %>
            <% if cls.parentModule?: %>
            <a class="parent" href="<%= cls.parentModule %>.coffee.html#<%= cls.parentName %>"><h3>extends <%= cls.parent %></h3></a>
            <% else: %>
            <a class="parent" href="#<%= cls.parent %>"><h3>extends <%= cls.parent %></h3></a>
            <% end %>
            <% end %>
          </div>
          <div class="class-content">
            <% if cls.docstring: %><%- cls.docstring %><% end %>
            <div class="methods">
              <% if cls.staticmethods.length > 0: %>
              <div class="staticmethods">
                <h3>Static Methods</h3>
                <% for method in cls.staticmethods: %>
                <div class="method">
                  <h4><%= method.name %>(<%= method.params.join(', ') %>)</h4>
                  <% if method.docstring: %><%- method.docstring %><% end %>
                </div>
                <% end %>
              </div>
              <% end %>
              <% if cls.instancemethods.length > 0: %>
              <div class="instancemethods">
                <h3>Instance Methods</h3>
                <% for method in cls.instancemethods: %>
                <div class="method">
                  <h4><%= method.name %>(<%= method.params.join(', ') %>)</h4>
                  <% if method.docstring: %><%- method.docstring %><% end %>
                </div>
                <% end %>
              </div>
              <% end %>
              <% if not @options.hideprivate and cls.privatemethods.length > 0: %>
              <div class="privatemethods">
                <h3>Private Methods</h3>
                <% for method in cls.privatemethods: %>
                <div class="method">
                  <h4><%= method.name %>(<%= method.params.join(', ') %>)</h4>
                  <% if method.docstring: %><%- method.docstring %><% end %>
                </div>
                <% end %>
              </div>
              <% end %>
            </div>
          </div>
        </div>
        <% end %>
      </div>
      <% end %>
      <% if @module.functions.length > 0: %>
      <div id="functions">
        <h2>Functions</h2>
        <% for func in @module.functions: %>
        <div class="function">
          <div class="header">
            <a id="<%= func.name %>"><h3><%= func.name %>(<%= func.params.join(', ') %>)</h3></a>
          </div>
          <% if func.docstring: %>
          <div>
            <%- func.docstring %>
          </div>
          <% end %>
        </div>
        <% end %>
      </div>
      <% end %>
    </div>
  </div>
</body>
</html>
