show off the new asset system in the examples

This commit is contained in:
Evan Almloff committed 2023-12-17 11:45:27 -06:00
1 parent a647ce2f36
commit d627153ccc
8 files changed
+14 -9

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ fn app(cx: Scope) -> Element {
p {
"This should show an image:"
}
img { src: "examples/assets/logo.png" }
img { src: mg!(image("examples/assets/logo.png").format(ImageType::Avif)).to_string() }
}
})
}