Current section
4 Versions
Jump to
Current section
4 Versions
Compare versions
4
files changed
+3
additions
-5
deletions
| @@ -1 +1 @@ | |
| 1 | - 0.0.3 |
| 1 | + 0.0.4 |
| @@ -22,4 +22,4 @@ | |
| 22 22 | [{<<"app">>,<<"poolboy">>}, |
| 23 23 | {<<"optional">>,false}, |
| 24 24 | {<<"requirement">>,<<"~> 1.5">>}]}]}. |
| 25 | - {<<"version">>,<<"0.0.3">>}. |
| 25 | + {<<"version">>,<<"0.0.4">>}. |
| @@ -8,7 +8,7 @@ defmodule ReactOnElixir.Config do | |
| 8 8 | end |
| 9 9 | |
| 10 10 | def renderer_path() do |
| 11 | - Application.get_env(:react_on_elixir, :renderer_path, Path.join(["#{:code.priv_dir(:react_on_elixir)}"])) |
| 11 | + Application.get_env(:react_on_elixir, :renderer_path, Path.join(["#{:code.priv_dir(:react_on_elixir)}", "renderer.js.eex"])) |
| 12 12 | end |
| 13 13 | |
| 14 14 | def pool_maxoverflow() do |
| @@ -5,8 +5,6 @@ defmodule ReactOnElixir.Renderer do | |
| 5 5 | defmodule RuntimeError, do: defexception [:message] |
| 6 6 | |
| 7 7 | def result(component_name, props, render_type) do |
| 8 | - IO.puts ReactOnElixir.Config.server_bundle_path() |
| 9 | - IO.puts ReactOnElixir.Config.renderer_path() |
| 10 8 | program = EEx.eval_file(ReactOnElixir.Config.renderer_path(), [server_bundle_path: ReactOnElixir.Config.server_bundle_path()]) |
| 11 9 | command = "node" |> System.find_executable |
| 12 10 | tmpfile = compile_to_tempfile(program) |