[erlang-questions] ANN: ezwebframe - an easy web framework
Max Bourinov
bourinov@REDACTED
Thu Dec 13 11:41:32 CET 2012
Really elegant and small!
Best regards,
Max
On Thu, Dec 13, 2012 at 2:35 PM, Benoit Chesneau <bchesneau@REDACTED>wrote:
>
>
>
> On Thu, Dec 13, 2012 at 11:17 AM, Joe Armstrong <erlang@REDACTED> 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.
>>
>> In the browser controls can be programmed to send messages to Erlang,
>> for example, when we click on a button in the browser the Erlang
>> process controlling the window will be sent a message which can be
>> received with the statement:
>>
>> receive
>> {Browser, {struct, [{clicked, ButtonName}]}} ->
>> ...
>> end
>>
>> All this is achieved using a thin JSON layer over websockets and
>> with cowboy managing the websockets.
>>
>> Cheers
>>
>> /Joe
>>
>>
>>
>>
> That's über cool. I really like the idea . I can see how you can
> distribute easily the rendering with that.
> - benoit
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121213/e37cca78/attachment.htm>
More information about the erlang-questions
mailing list