NodeJs Challenge #1

0 vuk knezevic · April 10, 2015

<style>
script {
 display: block;
}
</style>

<script type="text/plain">


<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css'/>
</head>
<body>
<h1><%= title %></h1>
<% include templates/header.ejs %>
<p>Welcome to <%= name %></p>
<ul>
<% for(var i = 0;i < 5;i++){ %>
<li><%= i %></li>
<% } %>
</ul>
<p>Here is the list of videos from category <%= videodata.categoryName %></p>
<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 Mohammed Gadi · April 28, 2015
Nice!!!
  • 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