diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a6f368..27f8f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # CHANGELOG -Fixes: +# v0.5.4 +Fixes for adding templates in a runtime. + +```elixir +poke socket, live_partial1: render_to_string("partial1.html", color: "#aaaabb") +poke socket, "partial1.html", color: "red" +``` + +### Fixes: * #37 * #40 (updated documentation for Drab.Live.EExEngine) * #41 diff --git a/lib/drab/live.ex b/lib/drab/live.ex index baf3216..1e54e78 100644 --- a/lib/drab/live.ex +++ b/lib/drab/live.ex @@ -116,7 +116,7 @@ defmodule Drab.Live do `ArgumentError`. *Partials are not hierachical*, eg. modifying the assign in the main partial will not update assigns in the child partials, even if they exist there. - #### Rendering partials in a runtime + #### Rendering partial templates in a runtime There is a possibility add the partial to the DOM tree in a runtime, using `render_to_string/2` helper: poke socket, live_partial1: render_to_string("partial1.html", color: "#aaaabb")