Source: site.view [edit]
Function name: tableRender
Arguments: arg
Description: Render contents as a table
Page type: webl
Render function:  
Module: siteutil

Page source:

var ret;
if (Type(arg) == "list") then
   ret = Wub_CreateTable(arg)
elsif (Type(arg) == "object") then
   var list = (arg.entries ? arg.items ? nil);
   var title = (arg.title ? arg.label ? nil);
   if list != nil then
      ret = Wub_CreateTable(list);
      if title != nil then
         ret = NewPiece("<h1>" + ToString(title) + "</h1>\n" + Markup(ret), "text/html")
      end
   else
      ret = arg
   end
else
   ret = arg
end;
ret