<link rel="stylesheet" type="text/css" href="styles.css" />  

% foreach $comment (@$commentsRef) {
    <% $comment->markup() %>
% }    
<div id="main">
  <div id="addCommentContainer">
  	<p>Add a Comment</p>
  	<form id="addCommentForm" method="post" action="">
  	  <div>
      	<label for="name">Your Name</label>
      	<input type="text" name="name" id="name" />

        <label for="body">Comment Body</label>
        <textarea name="body" id="body" cols="20" rows="5"></textarea>

        <input type="submit" id="submit" value="Submit" />
      </div>
    </form>
  </div>
</div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>

<%args>
  $page_id
</%args>

<%init>
  use Comments::Comment qw(:all);
  use Comments::CommentObj;
  
  my $comment;
  
  # Get comments.
  my $commentsRef = get_comments($page_id);  
</%init>