r9618 - helma-ng/trunk/apps/demo

[email protected] Mon, 13 Apr 2009 22:26:17 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090413202617.2C6043D0D6@mia>
Author: hannes
Date: 2009-04-13 22:26:17 +0200 (Mon, 13 Apr 2009)
New Revision: 9618

Modified:
   helma-ng/trunk/apps/demo/README.txt
Log:
Update (and shorten) very old readme file

Details at http://dev.helma.org/trac/helma/changeset/9618

Modified: helma-ng/trunk/apps/demo/README.txt
===================================================================
--- helma-ng/trunk/apps/demo/README.txt	2009-04-13 19:36:30 UTC (rev 9617)
+++ helma-ng/trunk/apps/demo/README.txt	2009-04-13 20:26:17 UTC (rev 9618)
@@ -1,38 +1,9 @@
-helma.simpleweb demo application
-================================
+This is the Helma NG demo application. To run this application open a terminal
+in the Helma NG directory and issue the following command:
 
-helma.simpleweb is a simple web framework that handles requests in a way
-similar to helma 1.
+  java -jar run.jar apps/demo/main.js
 
-how to run
-==========
+Then point your browser to this URL:
 
-issue the following command in the helma install directory:
-
-  java -jar server.jar demo/
-
-then point your browser to this url:
-
   http://localhost:8080/
 
-how to use helma.simpleweb
-==========================
-
-  1) create an application directory
-
-  2) create a file called main.js
-
-  3) add the following line to main.js:
-
-        importFromModule('helma.simpleweb', 'handleRequest');
-
-     this imports the function handleRequest from the simpleweb module.
-
-  4) Implement any number of functions with names ending with '_action'.
-     These will be callable via web urls, with the '_action' suffix removed.
-     For example, function foo_action will be mounted as /foo. If a url
-     contains no action, simpleweb looks for an action called main_action.
-
-  5) If you want, import other modules that contain action functions.
-
-there you have it, modular web serving with javascript!