diff --git a/packages/html-macro/Cargo.toml b/packages/html-macro/Cargo.toml index 84ac05deb..ae0365f58 100644 --- a/packages/html-macro/Cargo.toml +++ b/packages/html-macro/Cargo.toml @@ -1,9 +1,10 @@ [package] -name = "html-macro" -version = "0.1.9" -description = "html macro" +name = "dioxus-html-macro" +version = "0.1.0" +description = "HTML-compliant macro for creating Dioxus VNodes" authors = [ "Jonathan Kelley", + # Originally pulled from Percy - check it out! "Chinedu Francis Nwafili ", ] keywords = ["virtual", "dom", "wasm", "assembly", "webassembly"] diff --git a/packages/html-macro/README.md b/packages/html-macro/README.md index a87882095..b6723bc77 100644 --- a/packages/html-macro/README.md +++ b/packages/html-macro/README.md @@ -1,20 +1,3 @@ # html-macro -```rust -use html_macro::*; - -fn main () { - let component = html! {
Some component
}; - - let text_var = "You can interpolate text variables"; - - let html = html! { -
- You can type text right into the elements - { component } - { text_var } -
- }; - println!("{}", node); -} -``` +Disclaimer: much of this macro's source comes from Percy - another vdom implementation for Rust.