Skip to content

Commit e93906a

Browse files
committed
Add more documentation around js file paths for FFI
1 parent 08ec7b8 commit e93906a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/elixir_script/ffi.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ defmodule ElixirScript.FFI do
2020
ElixirScript expects JavaScript modules to be in the `priv/elixir_script` directory.
2121
These modules are copied to the output directory upon compilation.
2222
23-
For our example, a JavaScript file must be placed at `priv/elixir_script/my_app/json.js`.
23+
For our example, a JavaScript file must be placed in the `priv/elixir_script` folder.
24+
In our example, it could either be `priv/elixir_script/my_app/json.js` or
25+
`priv/elixir_script/my_app.json.js`. ElixirScript will look for either path
2426
2527
It looks like this
2628
```javascript

0 commit comments

Comments
 (0)