Hello! I just finished watching buckys node.js tutorials and wanted to expand on challenge #1 further.

The challenge is how to create the links to the page, but how do we actually generate the pages themselves and pass the item object over to the page template so we can display data relevant to the object?

I have HTML template:

<!DOCTYPE html>
<html>
<head>
<title><%title%> - About</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<% include templates/header.ejs%>

<H3>About</H3>
<p>Name: <% item.categoryName %>/n
Description: <% item.categoryDescription %>/n</p>
</body>
</html>


And main page which has the links:

<!DOCTYPE html>
<html>
<head>
<title>Flashy Cards</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<% include templates/header.ejs%>

<h3><%= vd.categoryName %></h3>
<u1>
<% vd.categories.forEach(function(item) { %>
<li><a href="/about?cat=<% item.categoryID %>"><%= item.categoryName %></a></li>
<!-- how do I generate a page here?? -->
<% }); %>
</u1>

</body>
</html>

Thanks! I am a university student messing around with java/android and very new to web! (No idea where to start really) :)