Wednesday, February 16, 2011 at 12:00 AM.

river2Suite.static.buildBeautifulRiver

on buildBeautifulRiver (adruser) {
	<<Changes
		<<2/8/11; 8:36:15 AM by DW
			<<If flBeautifulIsIndex we write to the index file. 
		<<2/7/11; 10:34:25 PM by DW
			<<Fix bug where the file created would be "Beautiful.html".
		<<2/4/11; 4:45:40 PM by DW
			<<Created.
	local (adrdata = river2suite.init (), path);
	if adruser != nil {
		if adruser^.prefs.beautifulRiver.flBeautifulIsIndex {
			path = nameof (adruser^) + ".html"}
		else {
			path = nameof (adruser^) + "Beautiful.html"}}
	else {
		if adrdata^.prefs.beautifulRiver.flBeautifulIsIndex {
			path = "index.html"}
		else {
			path = "indexBeautiful.html"}};
	river2Suite.static.writeFile (path, river2Suite.viewBeautifulRiver (adruser), adruser)};
bundle { //test code
	buildBeautifulRiver (nil)}



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.