When one looks at the web browsers in use today the overwhelming majority are capable of performing significant local processing, however the majority of web sites make little if any use of this capability. This is something that irritates me intensely. One of the biggest uses of the web is to serve up families of static pages; that is to say pages where some of the content is different but much od the page is shared - headers, sidebars etc. The classic example of this is a weblog or message board where each article has different content but the links along the side are the same. At present most weblog software creates static pages on the server based on a template or, in the case of message board software, each message is stored in a database and the message content is dynamically added to the template when the page is requested by a viewer using something like SSI or PHP.
As well as reducing the load on the server and probably the load on the network between viewer and server, this approach makes the publishing process comparitively simple, since adding an entry merely means that a new value must be placed at the top of the entries array in mane.js and the entry itself uploaded. Both these actions are trivially easy to perform in perl and both can performed simultaneously in the same script. By uploading the content file first and only uploading the new mane.js once this file has been verified to have been uploaded. As and when comments are permitted the same applies, each comment is simply appended to the comment array within the relevant entry .js file.
Share and Enjoy