Source: site.view [edit]
Function name: whatsnew
Arguments:
Description: List recently created functions
Page type: webl
Render function:   blogRender
Module: site

Page source:

var s = "";
var count = 0;
var MAX = 5;
var functionlist = [];
every m in Wub_ReadableModules(false) do
   functionlist = functionlist + Wub_FunctionList(m)
end;

var CreatedDate = fun(f)
   return Wub_MetadataVal(f, "created") 
end;

var entries = [];
every f in Wub_FunctionSort(CreatedDate, functionlist, -1) do
   if (CreatedDate(f) > 0) then
      var info = Wub_GetFunctionInfo(f);
      if (info.module != wubinfo.user) and (count < MAX) then
         entries = entries + [[. title=info.module+"."+info.name, content= info.description, postedby=info.createdby, when=info.modified.]];
         count = count + 1
      end
   end
end;

[. title="New Commands", entries=entries .];