<!DOCTYPE html>
<html>
<head>
  <title><%= @options.title %></title>
	<link rel="stylesheet" href="<%= rel_prefix %>/rdoc.css" type="text/css" media="screen" />
  <script src="<%= rel_prefix %>/js/jquery.js" type="text/javascript"></script>
  <script src="js/camping.js" type="text/javascript"></script>
</head>
<body>
  <div id="menu">
    <ul id="links">
      <li><a href="<%= rel_prefix %>/index.html">front</a> | </li>
      <li><a href="<%= rel_prefix %>/api.html">reference</a> | </li>
      <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
      <li><a href="http://github.com/camping/camping">code</a></li>
    </ul>
    <p id="version">Camping <%= VERS %></p>
  </div>
  
  <div id="fullpage">
    <div class="page_shade">
    	<div class="page">
    	  <p class="header"><%= Time.now %></p>
    	  <h1>Camping, the Book</h1>
    	  <ol>
    	  <% chapters.each do |chapter| %>
    	    <li>
    	      <a href="<%= chapter.path %>"><%= chapter.title %></a>
    	      <% unless chapter.toc.empty? %>
    	      <ul>
    	      <% chapter.toc.each do |id, title| %>
    	        <li><a href="<%= chapter.path %>#<%= id %>"><%= title %></a></li>
    	      <% end %>
    	      </ul>
    	      <% end %>
    	    </li>
    	  <% end %>
    	  </ol>
    	</div>
    </div>
  </div>
</body>
</html>