<<.include headers.inc>>
<html>
<head>
<title>index</title>
<<.include head.inc>>
</head>
<<*
one='1'
two='2'
>>
<<\
res=str(int(one)+int(two))
>>
<body>
<<.include header.inc>>
<p>
<b>Python Server Pages</b> for Google Application Engine development project.
This works like PHP pages except that you use normal Python code without any magic quotes to perform loops.
</p>
<p>
View <a href="#" onclick="document.getElementById('source').style.display='block'; return false">source</a> for this page
</p>
<form action="" method="post">
<input type="text" name="one" value="<<=one>>">
+
<input type="text" name="two" value="<<=two>>">
=
<input type="text" name="res" value="<<=res>>" readonly="readonly">
<br>
<br>
<input type="submit" value="Calculate">
</form>
<div id="source" style="display:none; background-color:white">
<pre>
<<\
file=open('www/index.htm')
buf=file.read()
file.close()
print esc(buf)
>>
</pre>
</div>
<<.include footer.inc>>
</body>
</html>