doctype html
html
  head
    title Connect - High quality middleware for node.js
    meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
    link(rel='stylesheet', href='style.css')
    script(src='jquery.js')
    script(src='docs.js')
  body
    #content
      h1 Connect
      for comment in comments
        unless ignore(comment)
          .comment(id=id(comment))
            h2= title(comment)
            .description!= comment.description.full

            if comment.tags.length
              ul.tags
                for tag in comment.tags
                  if tag.types
                    if 'param' == tag.type
                      li <em>#{tag.types.join(' | ')}</em> #{tag.name} #{tag.description}
                    else
                      li returns <em>#{tag.types.join(' | ')}</em> #{tag.description}
                  else if tag.name
                    li #{tag.name} #{tag.description}

            if comment.code
              h3 Source
              pre
                code!= comment.code

    ul#menu
      for comment in comments
        unless ignore(comment)
          li
            a(href='#' + id(comment))= title(comment)
