* add support for external assets * fix playwright tests * add more documentation to with_hash_suffix * restore external asset hashing tests * Update gtk workflow dependencies * fix doc test * multiple versions of libgtk * clear dx in playwright tests * fix fullstack caching test * try without apt cache * cache everything except libxdo-dev * revert ci changes * fix wasm asset options * fix merge conflict * recommend the used attribute instead * Move options to AssetOptionsBuilder * Don't deprecate non-canonical new asset options functions --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
61 lines
1.3 KiB
R
61 lines
1.3 KiB
R
parse_quote! {
|
|
div {
|
|
"hi"
|
|
{children}
|
|
}
|
|
Fragment {
|
|
Fragment {
|
|
Fragment {
|
|
Fragment {
|
|
Fragment {
|
|
div { "Finally have a real node!" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
div { class, "hello world" }
|
|
h1 { class, "hello world" }
|
|
h1 { class, {children} }
|
|
h1 { class, id, {children} }
|
|
h1 { class,
|
|
"hello world"
|
|
{children}
|
|
}
|
|
h1 { id,
|
|
"hello world"
|
|
{children}
|
|
}
|
|
Other { class, children }
|
|
Other { class,
|
|
"hello world"
|
|
{children}
|
|
}
|
|
div {
|
|
class: "asdasd",
|
|
onclick: move |_| {
|
|
let a = 10;
|
|
let b = 40;
|
|
let c = 50;
|
|
},
|
|
src1: asset!("/123.png"),
|
|
src2: asset!("/456.png"),
|
|
src3: asset!("/789.png"),
|
|
src4: asset!("/101112.png", WithOptions),
|
|
"hi"
|
|
}
|
|
p {
|
|
img {
|
|
src: asset!("/example-book/assets1/logo.png", AssetOptions::image().with_avif()),
|
|
alt: "some_local1",
|
|
title: "",
|
|
}
|
|
img {
|
|
src: asset!("/example-book/assets2/logo.png", AssetOptions::image().with_avif()),
|
|
alt: "some_local2",
|
|
title: "",
|
|
}
|
|
}
|
|
div { class: "asd", "Jon" }
|
|
}
|