Monday, April 04, 2011 at 1:07 AM.


on buildTop40Html (adruser) {
		<<3/10/11; 9:49:39 AM by DW
			<<Let the user's template override the default.
		<<3/2/11; 8:33:51 PM by DW
	local (t, now = ());
	new (tabletype, @t); = now;
	t.tabletext = radio2Suite.viewCounts (adruser, "linkListNumber", "linkListTitle", "linkListLink");
	t.username = nameof (adruser^);
	t.intro = string (;
	t.caption = string (;
	local (s = string.multiplereplaceall (string (adruser^.prefs.countsPageTemplate), @t, false, "<%", "%>"));
	adruser^.stats.urlTopLinksHtml = radio2Suite.writeStaticFile (adruser, "topLinks.html", s);
	adruser^.stats.whenLastTop40HtmlBuilds = now};
bundle { //test code
	buildTop40Html (@config.radio2.users.dave)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.