Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
websockets framework toghter with cowboy as described in book
Erlang JavaScript
Branch: master

This branch is 6 commits ahead, 10 commits behind joearms:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demos
priv
src
.gitignore
LICENSE
Makefile
README.md
rebar.config

README.md

ezwebframe

Pronounced "Easy web frame."

Ezwebframe attempts to make web programming just a little bit easier.

Erlang thinks that the browser is an Erlang process. To get the browser to do something Erlang send a message containing a command to the browser.

A typical message might be:

Browser ! [{cmd,fill_div},{id,div1},{txt, Bin}]

Assuming the browser has a div with id = div1, then the div will be filled with some HTML contained in the binary Bin.

Likewise buttons and controls in the browser, when pressed, send messages to Erlang.

This system is built using websockets together with cowboy and is described in my book Programming Erlang (2'nd edition) (To be published in 2013).

NOTE

This has only been tested in the chrome browser. Life is too short to test this in all known browsers.

INSTALLATION

This program uses rebar to fetch and install the necessary dependencies. First you need to install rebar. If you don't have rebar then you can install a pre-build binary from https://github.com/rebar/rebar/wiki/rebar.

To run the demos

   $ make
Something went wrong with that request. Please try again.