File: simple.rhtml

package info (click to toggle)
rapache 1.2.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,368 kB
  • sloc: sh: 18,629; ansic: 10,417; perl: 5,675; javascript: 2,800; makefile: 307
file content (18 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%
	setContentType("text/html")
	myname <- ifelse(is.null(GET$name),'World',GET$name)
%>
<html>
<head><title>A Simple Example</title></head>
<body>
<h1>Hello <%=myname%>!</h1></h1>
<% if (myname=='World'){ %>
		<form method="GET">What is your name?
		<input name="name" type="text">
		<input type="submit" value="Say it!">
		</form>
<% } else { %>
Today is: <%=format(Sys.time())%><br>
<a href="/brew/simple.rhtml">Click me!</a>
<% } %>
</body></html>