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

system.verbs.builtins.html.data.standardMacros.platformLink

on platformLink (includeVersion=false) {
	<<Generates a link to the operating system that a web page was built on.
		<<New: 10/29/97 at 2:57:06 PM by DW.
	local (url);
	case sys.os () {
		"Win95" {
			url = "http://www.microsoft.com/windows95/"};
		"WinNT" {
			url = "http://www.microsoft.com/ntworkstation/"};
		"MacOS" {
			url = "http://macos.apple.com/"}};
	
	local (s = "<a href=\"" + url + "\">" + sys.osName ()+ "</a>");
	if includeVersion {
		s = s + " v" + sys.osVersion ()};
	return (s)};
bundle { //test code
	dialog.alert (platformLink ())}



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.