Lecture Notes for CS349W
Fall Quarter 2008
John Ousterhout
<html>
<head>
<title>Hello, User </title>
</head>
<body>
<p>
This page was fetched at <%= Time.now() %>
</p>
</body>
</html>
<table>
<% i = 1
while (i <= 10) %>
<tr>
<td>Value of <%= i %>*<%= i %>:</td>
<td class="value"><%= i*i %></td>
</tr>
<% i = i+1
end %>
</table>
<%@ page session="true" %>Most systems keep the templating simple and let you invoke methods in the language for the additional functions.