aboutsummaryrefslogtreecommitdiff
path: root/src/web/cgi/index.sh
blob: f853eadf237e5eeef51511f9f90f7232d8f1a24d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
set -eu


cat <<-'EOF'
	Content-Type: text/html; charset=UTF-8
EOF

printf '\n'

cat <<-'EOF'
	<!DOCTYPE html>
	<html lang="en">
	  <head>
	    <meta charset="UTF-8" />
	    <meta name="viewport" content="width=device-width, initial-scale=1" />
	    <title>CGI sh!</title>
	  </head>
	  <body>
	    <p>Hello, CGI World!</p>
	    <p><pre>
EOF

echo env

cat <<-'EOF'
	    </pre></p>
	  </body>
	</html>
EOF