helma.simpleweb demo application
================================

helma.simpleweb is a simple web framework that handles requests in a way
similar to helma 1.

how to run
==========

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!

This is the Helma NG demo application. To run this application open a terminal
in the Helma NG directory and issue the following command:

  java -jar run.jar apps/demo/main.js

Then point your browser to this URL:

  http://localhost:8080/


Update (and shorten) very old readme file
Update (and shorten) very old readme file

git-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9618 688a9155-6ab5-4160-a077-9df41f55a9e9
