diff --git a/lib/reaxt.ex b/lib/reaxt.ex index 02e036a..315c421 100644 --- a/lib/reaxt.ex +++ b/lib/reaxt.ex @@ -47,9 +47,9 @@ defmodule Reaxt do end end - def render(module,data, timeout \\ 5_000) do + def render(module,data, timeout \\ 5_000, chunk \\ :server) do try do - render!(module,data,timeout) + render!(module, data, timeout, chunk) rescue ex-> case ex do