File: cgi-example.lua

package info (click to toggle)
lua-wsapi 1.1.0-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 400 kB
  • ctags: 171
  • sloc: ansic: 613; sh: 100; makefile: 30
file content (11 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env lua51

-- Example of script that uses the cgi launcher to launch an Orbit application

local cgi = require"wsapi.cgi"

-- require'ing the application. It should be in your package.path
local app = require"app"

-- Calls the launcher, app.run is the WSAPI run method of the application
cgi.run(app.run)