*Introducing Jaggery* Jaggery is a framework to write webapps and HTTP-focused web services for all aspects of the application: front-end, communication, Server-side logic and persistence in pure Javascript. One of the intents of this framework is to reduce the gap between writing web apps and web services.
This Framework uses Mozilla Rhino to process Javascript at the server and also contains a powerful caching layer with the support of Rhino compiled scripts; so its as fast as the JVM. As few key features, Jaggery has native JSON support and also E4X support for XML manipulation. M4 can be downloaded at http://dist.wso2.org/products/jaggery/dl/jaggery-1.0.0-SNAPSHOT_M4.zip Setting up Jaggery 1. Extract jaggery-1.0.0-SNAPSHOT_M4.zip 2. The bin folder will contain all the Jaggery execution scripts. 3. Run sh bin/wso2server.sh (bin/wso2server.bat) command to start the server. *The "Hello World" Jaggery App* - Create a directory called helloapp at {JAGGERY_HOME}/repository/deployment/server/jaggeryapps/ - Create a jaggery file helloworld.jag inside the helloapp directory and add the following code snippet <% var name = 'Jaggery'; print("Hello " + name); %> - Thats it ! point to {http://localhost:9763/helloapp/helloworld.jag} *Key Features* - Compose server side scripts purely in javascript (.jag) - Script caching support - Script include support - Module include support - Command line tool for easy development - Try-it tool for web based script validation - Includes support for, - HTTP request/response and session - JSON send/receive - Server side XMLHttpRequest - URIMatcher - Web Service invocation - File I/O - Email - Read/write feed - Relational database - Metadata store - Importing 3rd party javascript files For more information and samples you can refer to Jaggery docs at (http:// {yourip}:9763/docs/documentation.jag) which are shipped with the distribution Go through M4 release notes<https://wso2.org/jira/secure/ReleaseNote.jspa?atl_token=tVQmj4VMnh&version=10535&styleName=Html&projectId=10220&Create=Create>for fixes, improvements and new features. You can report issues, improvements and suggestions to Jaggery issue tracker<https://wso2.org/jira/browse/JAGGERY> Thanks, *Jaggery Development Team* <http://www.nuwanbando.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
