changed file structure and build
This commit is contained in:
parent
cc36d46002
commit
06de3c2f7e
8 changed files with 5 additions and 8 deletions
|
@ -1,11 +0,0 @@
|
|||
-module(js_runner).
|
||||
-export([executeJS/2, boot/0]).
|
||||
|
||||
boot() ->
|
||||
erlang_js:start(),
|
||||
{ok, Port} = js_driver:new(),
|
||||
Port.
|
||||
|
||||
executeJS(Port, Data) ->
|
||||
ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>),
|
||||
js:call(Port, <<"helloworld">>, [Data]).
|
Reference in a new issue