[erlang-questions] ANN: ezwebframe - an easy web framework

Loïc Hoguin essen@REDACTED
Thu Dec 13 11:45:27 CET 2012


On 12/13/2012 11:17 AM, Joe Armstrong wrote:
> ezwebframe
> ==========
>
> https://github.com/joearms/ezwebframe
>
> Pronounced "Easy web frame."
>
> About
> =====
>
> Ezwebframe attempts to make web programming just a little bit easier.
>
>  From Erlang point of view the browser *is* an Erlang process.
>
> Assume we have a web page populated with divs. For example:
>
>      <div id="a">
>        ...
>      </div>
>
>      <div id="b">
>        ...
>      </div>
>
> Erlang thinks the browser is a process. To fill div a with HTML an
> Erlang process evaluates the command:
>
>       Browser ! [{cmd, fill_div}, {id, a}, {txt, B}]
>
> Where B is a binary containing HTML.

Why not implement this for the modifications instead, though? It's well 
defined and works very well: http://taconite.sourceforge.net/

Don't need to be XML of course, but the actions defined are a good start 
of what frontend people usually want.

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list