Monday, November 08, 2010 at 12:05 AM.

on getSystemTemplate (templatename) {
	local (folder = radio.file.getSubFolder ( + "/" +;
	local (f, lowertemplatename = string.lower (templatename));
	fileloop (f in folder) {
		if string.nthfield (string.lower (file.filefrompath (f)), ".", 1) == lowertemplatename {
			return (string (file.readwholefile (f)))}};
	scriptError ("Can't get the system template because there is no file in the templates folder named \"" + templatename + "\".")};
bundle { //test code
	webbrowser.displaytext (getSystemTemplate ("folderBrowser"))}

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.