wip: start to refactor out hot reloading from packages
Also implement alternative simpler template system
This commit is contained in:
1 parent
3b7b503333
commit
90982e0ccb
44 files changed
+3865
-5133
No files matched your search
@@ -23,9 +23,7 @@ default = ["macro", "hooks", "html"]
|
||||
macro = ["dioxus-core-macro", "dioxus-rsx"]
|
||||
html = ["dioxus-html"]
|
||||
hooks = ["dioxus-hooks"]
|
||||
hot-reload = [
|
||||
"dioxus-core/hot-reload",
|
||||
]
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
futures-util = "0.3.21"
|
||||
@@ -34,6 +32,7 @@ rand = { version = "0.8.4", features = ["small_rng"] }
|
||||
criterion = "0.3.5"
|
||||
thiserror = "1.0.30"
|
||||
env_logger = "0.9.0"
|
||||
dioxus-edit-stream = { path = "../edit-stream" }
|
||||
|
||||
[[bench]]
|
||||
name = "create"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use dioxus_core::DomEdit::*;
|
||||
use dioxus_edit_stream::DomEdit::*;
|
||||
|
||||
fn new_dom<P: 'static + Send>(app: Component<P>, props: P) -> VirtualDom {
|
||||
VirtualDom::new_with_props(app, props)
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
#[test]
|
||||
fn basic_syntax_is_a_template() {
|
||||
//
|
||||
let var = 123;
|
||||
let asd = 123;
|
||||
|
||||
let g = rsx! {
|
||||
div {
|
||||
class: "asd",
|
||||
class: "{asd}",
|
||||
onclick: move |_| {},
|
||||
div { "{var}" }
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user