Monday, April 04, 2011 at 1:06 AM.
radio2Suite.buildJavascript
on buildJavascript (adruser, maxitems=50) {
<<Changes
<<2/24/11; 10:47:36 AM by DW
<<Created.
<<Example: http://static.reallysimple.org/users/dave/topLinks.js
<<Replacement for http://static.scripting.com/misc/topdave.js
local (htmltext = radio2Suite.viewCounts (adruser, "linkListNumber", "linkListTitle", "linkListLink"));
local (jstext = html.buildJavascriptInclude (htmltext), now = clock.now ());
adruser^.stats.urlTopLinksJs = radio2Suite.writeStaticFile (adruser, "topLinks.js", jstext);
adruser^.stats.ctJavaScriptBuilds++;
adruser^.stats.whenLastJavaScriptBuild = now};
bundle { //test code
buildJavascript (@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.