File: index.op

package info (click to toggle)
lua-orbit 2.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,956 kB
  • sloc: javascript: 2,216; sql: 78; sh: 32; makefile: 31; xml: 20
file content (101 lines) | stat: -rwxr-xr-x 2,586 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/env op.cgi

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Welcome to Kepler!</title>
    <link rel="stylesheet" href="css/doc.css" type="text/css"/>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>

<div id="container">

<div id="product">
	<div id="product_logo"><a href="http://www.keplerproject.org">
		<img src="img/keplerproject.gif" alt="Kepler Project logo" /></a>
    </div>
	<div id="product_name"><big><strong></strong></big></div>
	<div id="product_description">Welcome page</div>
</div> <!-- id="product" -->

<div id="main">

<div id="navigation">
$lua{[[ 
lfs = require "lfs"
mods = {}
for file in lfs.dir(web.doc_root .. "/doc") do
    local attr = lfs.attributes (web.doc_root .. "/doc/"..file)
    if attr.mode == "directory" and file ~= "." and file ~= ".." then
        table.insert(mods, file)
    end
end
if #mods == 0 then mods[1] = "(None)" end
table.sort(mods)
]]}

<h1>Kepler</h1>
	<ul>
        <li><strong>Documentation</strong>
            <ul>
                $mods[[
                <li><strong><a href="doc/$it/index.html">$it</a></strong></li>
		]]
            </ul>
        </li>
        <li><a href="test.op">Tests</a></li>
	</ul>
</div> <!-- id="navigation" -->

<div id="content">

<h2>Congratulations!</h2>

<p>
If you are reading this page,
<strong>$web|vars|SERVER_SOFTWARE</strong>
has been successfully configured for Orbit Pages on your system.
</p>

<p>
This is a page generated by CGILua that points to the installed modules documentation.
It serves both as a documentation index and as a simple example of a dynamic Lua Page.
</p>

<h2>What now?</h2>
<p>
From here you can also run some <a href="test.op">tests</a>.
</p>

<h2>Contact us</h2>

<p>
For more information on Kepler modules please
<a href="mailto:info-NO-SPAM-THANKS@keplerproject.org">contact us</a>.
Comments are welcome!
</p>

<p>
You can also reach other Kepler developers and users on the Kepler
Project <a href="http://luaforge.net/mail/?group_id=104">mailing list</a>.
</p>

<p>
Copyright 2004-2007 - <a href="http://www.keplerproject.org">Kepler Project</a>
</p>

</div> <!-- id="content" -->

</div> <!-- id="main" -->

<div id="about">
	<p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a></p>
	<p><small>$Id: index.op,v 1.1 2008/06/30 14:29:59 carregal Exp $</small></p>
</div> <!-- id="about" -->

</div> <!-- id="container" -->
</body>
</html>