-
Notifications
You must be signed in to change notification settings - Fork 0
Views
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.
- 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>
- In the views directory create footer.html
</body>
</html>
- In views directory create file index.html
<%- include('header.html') -%>
<p>Yes!!! The user is logged in!</p>
<%- include('footer.html') -%>
- In views directory create file display-request.html
<%- include('header.html') -%>
<h1>Welcome</h1>
<div id="user">
</div>
<%- include('footer.html') -%>