Node.JS Challenge #1

0 Jake Greenwood · July 10, 2015
// index.ejs

<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>

<% include templates/header.ejs%>
<p><%= name %></p>

<h3><%= videodata.categoryName %></h3>



<ul>
<% videodata.categories.forEach(function(item) { %>
<li><a href="https://www.thenewboston.com/videos_food.php?cat=<%= item.categoryID %>"><%= item.categoryName %></a></li>
<% }); %>

<% %>
</ul>

</body>
</html>














































Post a Reply

Replies

Oldest  Newest  Rating
0 Toan Tam · November 10, 2015
fd
  • 1

Node.js

87 followers
About

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Links
Moderators