Skip to content

Commit

Permalink
v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
grych committed Aug 17, 2017
1 parent 75ba7c8 commit aba638a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/drab/live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit aba638a

Please sign in to comment.