Source: site.view [edit]
Function name: ls
Arguments:
Description: List all WubHub functions
Page type: webl
Render function:   lsRender
Module: site

Page source:

var functionList = [. .];
var modules = Wub_ReadableModules(false);

// Order modules so those elements in first appear appear first
// and in specified order (if they are present)

var first = [ "global", "site", "sandbox", "siteutil" ];

var sortedmodules = [ ];
every m in first  do
   if m member modules then
      sortedmodules = sortedmodules + [m];
   end;
end;
every m in modules do
   if !(m member sortedmodules) then
      sortedmodules = sortedmodules + [m];
   end;
end;      

every m in sortedmodules do
   functionList[m] := Wub_FunctionList(m)
end;

functionList;