# mogwai-macros
Provides procedural macros `builder!` and `view!`, which allow the use of RSX
to declare mogwai views.
Example - this RSX:
```html
view!(
).run()
```
will roughly generate this rust code:
```rust
(mogwai::gizmo::dom::View::element("footer") as View)
.attribute("class", "info")
.with(
(mogwai::gizmo::dom::View::element("p") as View)
.with("Double click to edit a todo"),
)
.with(
(mogwai::gizmo::dom::View::element("p") as View)
.with("Written by ")
.with(
(mogwai::gizmo::dom::View::element("a")
as View)
.attribute("href", "https://github.com/schell")
.with("Schell Scivally"),
),
)
.with(
(mogwai::gizmo::dom::View::element("p") as View)
.with("Part of ")
.with(
(mogwai::gizmo::dom::View::element("a")
as View)
.attribute("href", "http://todomvc.com")
.with("TodoMVC"),
),
)
.run()
```