WebWrap

Introduction

WebWrap is a wrapper to facilitate cross platform (Neko, Node.js & PHP)
Web services or apps developmnent using the Haxe programming language.

It mainly consists of a "Listener" bootstrap class and a "Request" class
to handle Http requests.

It includes some support for progressive enhancements ("Listener" and
"Request" class are available in client side Javascript).

It is not a framework and it tries to remain as unintrusive as possible.

Aditional features

Prerequisites

For Node.js support, hxnodejs is required:
haxelib install hxnodejs

Installation

haxelib install webwrap.zip

Usage

Copy the provided "Index.hx" example and adapt it to your needs. Refer to UML class diagram for documentation on available methods to handle HTTP requests:

To generate HXML build files (with automatic resources inclusion):
haxelib run webwrap neko/nodejs/php/js [additional libraries]
Exemple : haxelib run webwrap nodejs haxelow

Advanced usage / Progressive enhancements

To enable progressibe enhancements, on anchors or forms elements, add
attribute: onclick="Listener.boot(this, method, url); return false"
method and url parameters are optional, their default values are:

Usage constraints

Download