Skip to content

Commit

Permalink
Add interpolation example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
chinedufn committed Mar 6, 2019
1 parent f682a51 commit 463134b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ pub fn start() {

let mut dom_updater = DomUpdater::new_append_to_mount(start_view, &body);

let greetings = "Hello, World!";

let end_view = html! {
<div class="big blue">
<strong>Hello, World!</strong>
<strong>{ greetings }</strong>

<button
class=MY_COMPONENT_CSS
Expand All @@ -119,7 +121,6 @@ pub fn start() {
</div>
};


dom_updater.update(end_view);
}

Expand Down

0 comments on commit 463134b

Please sign in to comment.