File: helloweb.k

package info (click to toggle)
kaya 0.4.4-6.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,200 kB
  • ctags: 2,015
  • sloc: cpp: 9,556; haskell: 7,253; sh: 3,060; yacc: 910; makefile: 816; perl: 90
file content (16 lines) | stat: -rw-r--r-- 229 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cgi helloweb;

import CGI;

Void PreContent() {
    content("<html><head><title>Hello!</title>
             </head><body>");
}

Void Default() {
    content("Hello web!");
}

Void PostContent() {
    content("</body></html>");
}