Initial directory struct + OTP stuffs

This commit is contained in:
Jonatan Pålsson 2011-01-25 13:38:32 +01:00
parent a44a538ac6
commit c88dcf7829
13 changed files with 160 additions and 0 deletions

7
js_runner.erl Normal file
View file

@ -0,0 +1,7 @@
-module(js_runner).
-export([run/0]).
boot() ->
erlang_js:start(),
{ok, Port} = js_driver:new(),
ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>),
js:call(Port, <<"helloworld">>, [<<"Generic Game Server">>]).