[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: CGI.lua - A native CGI Interface
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 23 Feb 2011 20:19:48 +0100
On Feb 23, 2011, at 4:53 PM, Regular Joe wrote:
> The usage is as simple as the following:
>
> CGI = require("CGI")
> cgi = CGI()
> cgi:sendHeader(200, "Content-Type", "text/html")
> cgi:write("Hello World")
Nice. At least it does exactly what it says on the tin :P
FWIW, here is a rather obsolete variant:
http://dev.alt.textdrive.com/browser/LW/CGI.lua
Pseudo documentation:
http://dev.alt.textdrive.com/browser/LW/CGI.html?format=raw
Mandatory pseudo example:
local CGI = require( "CGI" )
CGI:response():write( "Hello?", "Hello?" )