Skip to content
Karen Coombs edited this page Jul 10, 2018 · 1 revision

Views govern how content will be displayed on the screen. Data can be passed into a view for display purposes. More on this later.

Create a basic layout for your views

  1. In the views directory create header.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Create ILL Request demo</title>
</head>
<body>
  1. In the views directory create footer.html
</body>
</html>

Create "home" view

  1. In views directory create file index.html
<%- include('header.html') -%>
<p>Yes!!! The user is logged in!</p>
<%- include('footer.html') -%>

Create base request view

  1. In views directory create file display-request.html
<%- include('header.html') -%>
<h1>Welcome</h1>
<div id="user">
</div>
<%- include('footer.html') -%>

Clone this wiki locally