plait-macros 0.2.0

Macros for `plait`: A modern HTML templating library for Rust that embraces composition.
Documentation

plait-macros

Procedural macros for the plait HTML templating library.

This crate provides two macros for generating HTML:

  • html! - Creates a RenderFn from a declarative template which can be rendered to an Html string using the render function.
  • attrs! - Creates an Attributes collection.

These macros are re-exported by the main plait crate and should typically be used from there rather than directly from this crate.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.