Skip to content

Commit 3917478

Browse files
authored
Update using-with-phoenix.md
1 parent c57ce00 commit 3917478

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/guide/using-with-phoenix.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ title = "using with phoenix"
55

66
This guide will walk through setting up a Phoenix project with Elixirscript. This guide assumes you have already created a Phoenix project
77

8-
**Update: 2017-08-15**: This guide has been updated to cover both ElixirScript 0.30 and Phoenix 1.3
8+
**Update: 2018-05-21**: This guide has been updated to cover both ElixirScript 0.32 and Phoenix 1.3
99

1010
Update your mix.exs file to add the current version of elixirscript to your dependencies:
1111

1212
```elixir
1313
defp deps do
1414
[
1515
#other deps
16-
{:elixir_script, "~> x.x"}
16+
{:elixir_script, "~> 0.32"}
1717
]
1818
```
1919

@@ -68,14 +68,14 @@ end
6868
Finally, update `assets/js/app.js` to start your Elixirscript app:
6969

7070
```javascript
71-
import Elixir from './build/elixirscript.build.js';
72-
Elixir.start(Elixir.MyApp.App, [])
71+
import App from './build/Elixir.MyApp.App.js';
72+
App.start(Symbol.for('normal'), []);
7373
```
7474

7575
The empty array is list of initial arguments for your app.
7676

7777

78-
If you run `mix compile`, you should see a JavaScript file, `elixirscript.build.js` in your `assets/js/build` directory.
78+
If you run `mix compile`, you should see a JavaScript file, `Elixir.MyApp.App.js` in your `assets/js/build` directory.
7979

8080
If you run `mix phx.server`, open your browser, and then open your console, you should see `Hello, world`. Any changes should cause a recompilation of your ElixirScript code and a reload of the browser
8181

0 commit comments

Comments
 (0)