SQLite wrapper
This commit is contained in:
parent
6da95ed9ca
commit
f41bd71e61
43 changed files with 321 additions and 93 deletions
15
examples/cgiex.nim
Normal file
15
examples/cgiex.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Test/show CGI module
|
||||
import strtabs, cgi
|
||||
|
||||
|
||||
#setTestData("name", "the andreas", "password", "rumpf\t\ttab")
|
||||
|
||||
var myData = readData()
|
||||
validateData(myData, "name", "password")
|
||||
writeContentType()
|
||||
|
||||
write(stdout, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n")
|
||||
write(stdout, "<html><head><title>Test</title></head><body>\n")
|
||||
writeln(stdout, "name: " & myData["name"])
|
||||
writeln(stdout, "password: " & myData["password"])
|
||||
writeln(stdout, "</body></html>")
|
||||
Loading…
Add table
Add a link
Reference in a new issue