~ubuntu-branches/ubuntu/natty/lua-gtk/natty

« back to all changes in this revision

Viewing changes to doc/en/docmenu.html

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2009-05-17 18:16:21 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090517181621-9kmdd82nxg54jsio
* new upstream snapshot comprising many more GNOME libraries:
    Gtk, GDK, GLib, Pango, Atk, Libxml2, Cairo, Clutter, Gtkhtml, 
    GtkSourceView, Gio, Gtkspell and GConf. 
* new upstream release includes a new configure script written in Lua,
  no more bashisms there (Closes: #507205)
* renamed binary packages to liblua5.1-gnome-*
* updated standards-version to 3.8.1, no changes needed
* patch to load .so.* version of libraries and not .so (that was requiring
  -dev packages) (Closes: #522087)
* removed redundant Architecture line from the source stanza of control
  (Closes: #498120)
* updated copyright file, Wolfgang Oertl holds it for 2009 too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<p>
 
3
The menus can be nested to multiple levels; each menu is therefore a list
 
4
of entries with filename, page title and an optional submenu.  It is defined by
 
5
the input file <code>menu.lua</code>, which must define one variable named
 
6
<code>menu</code> following this schema:
 
7
</p>
 
8
 
 
9
<%= inline_code [[
 
10
menu = { item, ... }
 
11
item = { "filename", "Title" [, menu] }
 
12
]] %>
 
13
 
 
14
<p>
 
15
Here is an example with just two levels for simplicity.  Note that for each
 
16
page being generated, a static menu is produced with the current menu item
 
17
in bold, with the "surrounding" menu items being displayed as links.
 
18
</p>
 
19
 
 
20
<%= inline_code [[
 
21
menu = {
 
22
    { "index", "Home" },
 
23
    { "first", "First Toplevel Page" },
 
24
    { "second", "Second Toplevel Page", {
 
25
        { "third", "Subpage of Second" },
 
26
        { "fourth", "Another Subpage" },
 
27
    } },
 
28
}
 
29
]] %>