about summary refs log tree commit diff stats
path: root/adapter/about/about.nim
blob: 860294f3016c11b28ec10e0713813b501d6f96ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import std/envvars

const chawan = staticRead"res/chawan.html"
const license = staticRead"res/license.html"

proc main() =
  stdout.write("Content-Type: text/html\n\n")
  case getEnv("MAPPED_URI_PATH")
  of "blank": stdout.write("")
  of "chawan": stdout.write(chawan)
  of "license": stdout.write(license)
  else: stdout.write("Error: about page not found")

main()