فهرست منبع

Chore: fix up html macro

Jonathan Kelley 4 سال پیش
والد
کامیت
ae1b8bbede
2فایلهای تغییر یافته به همراه5 افزوده شده و 21 حذف شده
  1. 4 3
      packages/html-macro/Cargo.toml
  2. 1 18
      packages/html-macro/README.md

+ 4 - 3
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 <frankie.nwafili@gmail.com>",
 ]
 keywords = ["virtual", "dom", "wasm", "assembly", "webassembly"]

+ 1 - 18
packages/html-macro/README.md

@@ -1,20 +1,3 @@
 # html-macro
 
-```rust
-use html_macro::*;
-
-fn main () {
-    let component = html! { <div id='component'>Some component</div> };
-
-    let text_var = "You can interpolate text variables";
-
-    let html = html! {
-       <div onclick=|_ev: web_sys::MouseEvent| {}>
-          You can type text right into the elements
-          { component }
-          { text_var }
-       </div>
-    };
-    println!("{}", node);
-}
-```
+Disclaimer: much of this macro's source comes from Percy - another vdom implementation for Rust.