show off the new asset system in the examples
This commit is contained in:
1 parent
a647ce2f36
commit
d627153ccc
8 files changed
+14
-9
No files matched your search
@@ -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() }
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user