@@ -23,34 +23,28 @@
24//! 'a: 'bump,
24//! 'a: 'bump,
26+//! use dodrio::builder::*;
26//! let id = bumpalo::format!(in bump, "hello-{}", self.who);
28//! let id = bumpalo::format!(in bump, "hello-{}", self.who);
27−//! Node::element(
29+//!
28−//! bump,
30+//! div(bump)
29−//! // The element's tag name. In this case a `<p>` element.
31+//! .attr("id", id.into_bump_str())
32−//! [on(bump, "click", |root, _vdom, _event| {
32+//! .on("click", |root, _vdom, _event| {
33//! let hello = root.unwrap_mut::<Hello>();
33//! let hello = root.unwrap_mut::<Hello>();
34−//! let window = web_sys::window().expect_throw("should have a `Window` on the Web");
35+//! .expect_throw("should have a `Window` on the Web")
35−//! window.alert_with_message(hello.who);
36+//! .alert_with_message(hello.who);
37−//! // Attributes.
38+//! .children([
38−//! [Attribute { name: "id", value: id.into_bump_str() }],
41−//! Node::text("Hello, "),
39+//! text("Hello, "),
43−//! bump,
40+//! strong(bump)
45−//! [],
41+//! .children([
48−//! Node::text(self.who),
42+//! text(self.who),
49−//! Node::text("!"),
43+//! text("!"),
51−//! ),
45+//! .finish(),