rust-toolchain.toml
.$ npm install
.$ cargo run -- --help
maud::Render
.Foo
and its implementations are in a module crate::components::foo
.crate::components
module re-exports all the components.crate::components
module is brought into scope.
A component Foo
is referred to as components::Foo
.Component fields are pub(crate)
. No constructor methods.
An example of how a component is used:
html! {
(components::Foo {
a: 1
})
}
maud::Render
are not components.
This is because they are used as HTML attribute values.
The maud::Render
trait is used for attribute values, as well.